/* Custom CSS for SIGEN - Débitos em Aberto */

:root {
  --primary-color: #0a60a8;       /* Deep SIGEN Blue */
  --primary-light: #009fe3;       /* Cyan/Light Blue in logo */
  --accent-color: #00a2f3;        /* Light blue for buttons */
  --text-primary: #212121;        /* Material text primary */
  --text-secondary: #757575;      /* Material text secondary */
  --bg-color: #f7f9fa;            /* Layout background */
  --card-bg: #ffffff;
  --warning-bg: #ffeacc;          /* Peach warning box background */
  --warning-text: #7a431d;        /* Dark orange warning text */
  --border-color: #e0e0e0;
  --accent-green: #2ecc71;        /* Dialog accent green */
  --shadow-light: 0 2px 5px rgba(0, 0, 0, 0.05);
  --shadow-card: 0 4px 16px rgba(0, 0, 0, 0.08);
}

/* Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Nunito Sans', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* Header Bar */
.app-header {
  height: 64px;
  background-color: #ffffff;
  border-bottom: 1.5px solid #f0f0f0;
  display: flex;
  align-items: center;
  padding: 0 16px;
  position: sticky;
  top: 0;
  z-index: 10;
}

.menu-button {
  background: none;
  border: none;
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #5f6368;
  margin-right: 12px;
  transition: background-color 0.2s;
}

.menu-button:hover {
  background-color: rgba(0, 0, 0, 0.04);
}

.menu-hamburger {
  display: block;
  width: 18px;
  height: 2px;
  background-color: currentColor;
  position: relative;
  border-radius: 1px;
}

.menu-hamburger::before,
.menu-hamburger::after {
  content: '';
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background-color: currentColor;
  border-radius: 1px;
}

.menu-hamburger::before {
  top: -6px;
}

.menu-hamburger::after {
  top: 6px;
}

.logo-container {
  display: flex;
  align-items: center;
}

.sigen-logo-img {
  height: 42px;
  width: auto;
  display: block;
}

/* Main Layout */
.app-container {
  flex: 1;
  max-width: 480px;
  width: 100%;
  margin: 0 auto;
  padding: 16px 0;
  display: flex;
  flex-direction: column;
}

.page-title {
  font-size: 24px;
  font-weight: 400;
  color: var(--text-primary);
  margin: 12px 16px;
  letter-spacing: -0.3px;
}

/* Card Styling */
.payment-card {
  background-color: var(--card-bg);
  border-radius: 4px;
  box-shadow: var(--shadow-card);
  margin: 0 12px 24px 12px;
  overflow: hidden;
  border: 1px solid #e8e8e8;
  position: relative;
}

.card-header-bar {
  height: 16px;
  background-color: #1b75bb; /* Primary Theme Bar */
  width: 100%;
}

.accordion-list {
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Accordion Component */
.accordion-item {
  border: 1px solid #e6e8eb;
  border-radius: 4px;
  box-shadow: var(--shadow-light);
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.accordion-header {
  height: 56px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 16px;
  cursor: pointer;
  list-style: none; /* Hide default triangle */
  user-select: none;
  background-color: #ffffff;
  border-bottom: 1px solid transparent;
}

.accordion-header::-webkit-details-marker {
  display: none; /* Webkit browser compatibility */
}

.accordion-title {
  font-size: 15px;
  font-weight: 500;
  color: #333;
}

.accordion-icon {
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid var(--text-secondary);
  transition: transform 0.25s ease;
}

/* Rotate icon on details open */
.accordion-item[open] > .accordion-header {
  border-bottom-color: #f1f3f4;
}

.accordion-item[open] .accordion-icon {
  transform: rotate(180deg);
}

.accordion-content {
  padding: 16px;
  background-color: #ffffff;
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Material Design Filled Inputs */
.md-input-container {
  position: relative;
  background-color: #f5f5f5;
  border-top-left-radius: 4px;
  border-top-right-radius: 4px;
  margin-bottom: 20px;
  border-bottom: 1px solid #9e9e9e;
  transition: background-color 0.2s, border-bottom-color 0.2s;
  width: 100%;
}

.md-input-container:hover {
  background-color: #eceece;
}

.md-input,
.md-select {
  width: 100%;
  height: 56px;
  padding: 24px 16px 8px 16px;
  border: none;
  background: transparent;
  font-size: 15px;
  font-family: inherit;
  color: var(--text-primary);
  outline: none;
  box-sizing: border-box;
}

/* Custom Outlined Select styling */
.select-container {
  position: relative;
}

.md-select {
  appearance: none;
  cursor: pointer;
}

.select-arrow {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid var(--text-secondary);
  font-size: 0;
}

/* Float Label Animation */
.md-label {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  font-size: 15px;
  transform-origin: top left;
}

/* Floated State (Focused or filled) */
.md-input:focus ~ .md-label,
.md-input:not(:placeholder-shown) ~ .md-label,
.md-select:focus ~ .md-label,
.md-select:valid ~ .md-label,
.select-container.focused .md-label,
.select-container.has-value .md-label {
  transform: translateY(-80%) scale(0.75);
  color: var(--accent-color);
}

/* Validation styling override for select placeholder */
.md-select:invalid ~ .md-label {
  /* Keep centered when not selected */
}

/* Input bottom accent line */
.md-line {
  position: absolute;
  bottom: -1px;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: var(--accent-color);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.md-input:focus ~ .md-line,
.md-select:focus ~ .md-line,
.select-container.focused .md-line {
  width: 100%;
  left: 0;
}

.md-input-container:focus-within {
  border-bottom-color: transparent;
}

.select-container.focused {
  border-bottom-color: transparent;
}

/* --- Custom Material Design Dropdown Select Styles --- */

/* Hide native select visually while keeping it interactive for validation */
.custom-select-wrapper select.md-select {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Visual select field wrapper */
.md-select-trigger {
  width: 100%;
  height: 56px;
  padding: 24px 16px 8px 16px;
  border: none;
  background: transparent;
  font-size: 15px;
  font-family: inherit;
  color: var(--text-primary);
  outline: none;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.md-select-selected-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 4px;
  display: block;
  width: calc(100% - 24px); /* Leave room for arrow icon */
  color: var(--text-primary);
}

/* Arrow rotation when open */
.select-container.open .select-arrow {
  transform: translateY(-50%) rotate(180deg);
  color: var(--accent-color);
}

/* Custom Dropdown Menu Overlay */
.md-select-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background-color: #ffffff;
  border-radius: 4px;
  box-shadow: 0 5px 5px -3px rgba(0,0,0,0.2), 
              0 8px 10px 1px rgba(0,0,0,0.14), 
              0 3px 14px 2px rgba(0,0,0,0.12); /* Elevation 8 */
  z-index: 99;
  max-height: 250px;
  overflow-y: auto;
  margin-top: 2px;
  padding: 8px 0;
  display: none;
  opacity: 0;
  transform: scaleY(0.85);
  transform-origin: top;
  transition: opacity 0.15s cubic-bezier(0, 0, 0.2, 1), 
              transform 0.15s cubic-bezier(0, 0, 0.2, 1);
}

.select-container.open .md-select-menu {
  display: block;
  opacity: 1;
  transform: scaleY(1);
}

/* Dropdown Menu Options */
.md-select-option {
  padding: 12px 16px;
  font-size: 15px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: background-color 0.15s;
}

.md-select-option:hover {
  background-color: rgba(0, 0, 0, 0.04);
}

.md-select-option.selected {
  background-color: rgba(10, 96, 168, 0.08); /* Accent-color / primary low opacity */
  color: var(--primary-color);
  font-weight: 500;
}

/* Tick icon / Checkmark icon */
.md-select-option .option-checkmark {
  font-size: 18px;
  color: var(--primary-color);
  display: none;
}

.md-select-option.selected .option-checkmark {
  display: block;
}

/* Captcha Area */
.captcha-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.captcha-image-box {
  width: 100%;
  max-width: 200px;
  height: 52px;
  background-color: #e5e5f7;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: center;
  align-items: center;
}

.captcha-input-container {
  margin-bottom: 8px;
}

.captcha-timer-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 14px;
  color: var(--text-primary);
}

.menu-button-text {
  width: auto;
  padding: 0 12px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
}

.refresh-button {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-secondary);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 13px;
  font-family: inherit;
  font-weight: 600;
  transition: background-color 0.2s;
}

.refresh-button:hover {
  background-color: rgba(0,0,0,0.05);
}

.refresh-button:active {
  background-color: rgba(0,0,0,0.08);
}

.timer-text strong {
  margin-left: 4px;
  font-weight: 500;
}

/* Buttons */
.button-row {
  display: flex;
  justify-content: center;
  margin-top: 16px;
}

.md-button {
  height: 36px;
  min-width: 96px;
  padding: 0 16px;
  background-color: var(--accent-color);
  color: #ffffff;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
  transition: background-color 0.2s, box-shadow 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  outline: none;
}

.md-button:hover {
  background-color: #0093e0;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
}

.md-button:active {
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

/* Warnings (Orange Banners) */
.warning-box {
  background-color: var(--warning-bg);
  border-radius: 8px;
  padding: 16px;
  color: var(--warning-text);
  font-size: 13.5px;
  line-height: 1.45;
  margin-bottom: 20px;
  border: 1px solid rgba(240, 173, 78, 0.1);
}

.warning-box strong {
  font-weight: 700;
}

.error-box {
  background-color: #fdecea;
  color: #7f1d1d;
  border-color: rgba(211, 47, 47, 0.2);
}

.coren-error-box p + p {
  margin-top: 8px;
}

.coren-filter-error {
  margin: -12px 0 16px;
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.45;
  color: #7f1d1d;
  background-color: #fdecea;
  border: 1px solid rgba(211, 47, 47, 0.2);
  border-radius: 8px;
}

.coren-filter-error[hidden] {
  display: none;
}

.select-container.coren-mismatch-highlight {
  border-bottom-color: #d32f2f;
  background-color: #fff5f5;
  animation: coren-mismatch-pulse 0.6s ease-in-out 2;
}

@keyframes coren-mismatch-pulse {
  0%, 100% { box-shadow: none; }
  50% { box-shadow: 0 0 0 2px rgba(211, 47, 47, 0.25); }
}

/* Anuidade Values */
.anuidade-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 24px 0;
}

.professional-profile-card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 20px;
  color: #000;
}

.professional-profile-card .profile-name {
  font-size: 16px;
  margin: 0 0 8px;
  font-weight: 600;
  color: #000;
}

.professional-profile-card .profile-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  font-size: 0.85rem;
  color: #000;
}

.professional-profile-card .profile-details strong,
.professional-profile-card .profile-details span {
  color: #000;
}

.detail-row {
  display: flex;
  font-size: 14.5px;
  line-height: 1.4;
}

.detail-label {
  font-weight: 700;
  color: var(--text-primary);
  width: 155px;
  flex-shrink: 0;
}

.detail-value {
  color: #4b5563;
}

/* Debit item cards */
.debit-item-card {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
  background: #fff;
  color: #000;
}

.debit-item-header {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  font-weight: 700;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 8px;
  color: #000;
}

.debit-item-header input[type="radio"] {
  margin-right: 8px;
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--primary-color);
}

.debit-item-title {
  color: #000;
  font-size: 0.95rem;
}

.debit-item-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  font-size: 0.85rem;
  color: #000;
}

.debit-detail,
.debit-detail strong {
  color: #000;
}

.debit-exclusive-tag {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 8px;
  font-size: 0.7rem;
  font-weight: 600;
  color: #000;
  background: #f5f5f5;
  border: 1px solid #ccc;
  border-radius: 4px;
  vertical-align: middle;
}

/* Payment selection flow elements */
.payment-method-container {
  margin-top: 16px;
  margin-bottom: 24px;
}

.payment-options-box {
  display: none; /* Toggled by JavaScript */
  margin-top: 16px;
  margin-bottom: 24px;
  animation: slideDown 0.25s ease-out;
}

.payment-options-title {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.radio-group {
  display: flex;
  gap: 28px;
  margin-bottom: 12px;
}

.parcelado-unavailable-msg {
  margin-bottom: 16px;
}

.parcelado-unavailable-msg[hidden] {
  display: none;
}

.md-radio-label {
  display: flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.md-radio-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.md-radio-custom {
  width: 20px;
  height: 20px;
  border: 2px solid #757575;
  border-radius: 50%;
  margin-right: 8px;
  display: inline-block;
  position: relative;
  transition: border-color 0.2s;
}

.md-radio-input:checked + .md-radio-custom {
  border-color: #757575;
}

.md-radio-custom::after {
  content: '';
  position: absolute;
  display: none;
  top: 4px;
  left: 4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #757575;
}

.md-radio-input:checked + .md-radio-custom::after {
  display: block;
}

.md-radio-text {
  font-size: 14.5px;
  color: #4b5563;
}

.payment-button-row {
  margin-top: 20px;
}

/* Divider */
.section-divider {
  border: none;
  border-top: 1px solid #e0e0e0;
  margin: 20px 0;
}

/* Warnings bottom box */
.info-box {
  margin-bottom: 0;
}

/* Spinner Styles */
.spinner-container {
  display: none;
  width: 20px;
  height: 20px;
  position: absolute;
}

.spinner-svg {
  animation: rotate 2s linear infinite;
  width: 100%;
  height: 100%;
}

.spinner-path {
  stroke: #ffffff;
  stroke-linecap: round;
  animation: dash 1.5s ease-in-out infinite;
}

@keyframes rotate {
  100% {
    transform: rotate(360deg);
  }
}

@keyframes dash {
  0% {
    stroke-dasharray: 1, 150;
    stroke-dashoffset: 0;
  }
  50% {
    stroke-dasharray: 90, 150;
    stroke-dashoffset: -35;
  }
  100% {
    stroke-dasharray: 90, 150;
    stroke-dashoffset: -124;
  }
}

/* Loading button state */
.md-button.btn-loading {
  background-color: #0288d1;
  pointer-events: none;
}

.md-button.btn-loading .btn-text {
  visibility: hidden;
}

.md-button.btn-loading .spinner-container {
  display: flex;
}

/* Dialog Styling */
.approval-dialog {
  border: none;
  border-radius: 4px;
  box-shadow: 0 11px 15px -7px rgba(0,0,0,0.2), 0 24px 38px 3px rgba(0,0,0,0.14), 0 9px 46px 8px rgba(0,0,0,0.12);
  width: 320px;
  max-width: 90vw;
  padding: 0;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #ffffff;
}

.approval-dialog::backdrop {
  background-color: rgba(0, 0, 0, 0.45);
}

.dialog-header {
  padding: 24px 24px 0 24px;
}

.dialog-title {
  font-size: 20px;
  font-weight: 500;
  color: var(--text-primary);
  text-align: center;
}

.dialog-accent-line {
  height: 4px;
  background-color: var(--accent-green);
  width: 100%;
  margin-top: 16px;
  border-radius: 2px;
}

.dialog-content {
  padding: 16px 24px 24px 24px;
  font-size: 14.5px;
  line-height: 1.5;
  color: #4b5563;
}

.dialog-content strong {
  color: var(--text-primary);
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 8px 12px 12px 12px;
}

.dialog-btn {
  background: none;
  border: none;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  border-radius: 4px;
  cursor: pointer;
  outline: none;
  transition: background-color 0.2s;
}

.dialog-btn:hover {
  background-color: rgba(0, 0, 0, 0.04);
}

.cancel-btn {
  color: var(--text-secondary);
}

.confirm-btn {
  color: var(--accent-color);
}

/* Success Receipt Overlay */
.pix-loading-screen {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(255, 255, 255, 0.92);
  z-index: 200;
  display: none;
  justify-content: center;
  align-items: center;
}

.pix-loading-screen.active {
  display: flex;
}

body.pix-loading-open {
  overflow: hidden;
}

.pix-loading-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.pix-loading-spinner {
  width: 48px;
  height: 48px;
  animation: rotate 1.4s linear infinite;
}

.pix-loading-spinner .spinner-path {
  stroke: var(--primary-color);
}

.pix-loading-text {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}

.success-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 100;
  display: none;
  justify-content: center;
  align-items: center;
  padding: 16px;
}

.success-screen.active {
  display: flex;
}

.success-card {
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: var(--shadow-card);
  width: 100%;
  max-width: 520px;
  padding: 24px;
  text-align: center;
  animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.success-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.success-header h2 {
  font-size: 20px;
  font-weight: 500;
}

.success-body {
  font-size: 14px;
  color: #4b5563;
  line-height: 1.5;
  text-align: left;
  margin-bottom: 24px;
}

.success-body p {
  margin-bottom: 16px;
  text-align: center;
}

.qr-code-placeholder {
  display: flex;
  justify-content: center;
  margin: 16px 0;
  overflow: visible;
}

.pix-qrcode-display {
  display: inline-block;
  line-height: 0;
}

.pix-qrcode-image {
  width: auto;
  height: auto;
  max-width: 100%;
  display: block;
}

.pix-qrcode-fallback {
  font-size: 0.8rem;
  color: #64748b;
  text-align: center;
  padding: 12px;
}

.copy-pix-code-btn.copied {
  background-color: #2ecc71;
}

.pix-key-box {
  margin-top: 16px;
}

.pix-expires-at {
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-align: center;
  margin: 12px 0 0;
}

.pix-payment-status {
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  margin: 12px 0 0;
  padding: 8px 12px;
  border-radius: 6px;
}

.pix-payment-status.pending {
  color: #b45309;
  background: #fffbeb;
}

.pix-payment-status.paid {
  color: #15803d;
  background: #f0fdf4;
}

.pix-payment-status.expired {
  color: #b91c1c;
  background: #fef2f2;
}

.pix-key-box label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  display: block;
  margin-bottom: 4px;
}

.copy-input-row {
  display: flex;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  overflow: hidden;
  background-color: #f8f9fa;
}

.copy-input-row input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 8px 12px;
  font-size: 13px;
  font-family: monospace;
  outline: none;
  color: #374151;
}

.copy-btn {
  background: none;
  border: none;
  border-left: 1px solid var(--border-color);
  cursor: pointer;
  padding: 0 12px;
  color: var(--accent-color);
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  transition: background-color 0.2s;
}

.copy-btn:hover {
  background-color: #f1f3f4;
}

.success-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.success-actions .md-button {
  width: 100%;
}

.close-success-btn {
  text-align: center;
  color: var(--text-secondary);
  align-self: center;
  text-transform: none;
}

/* Chat Floating Action Button */
.chat-fab {
  position: fixed;
  bottom: 20px;
  right: 16px;
  background-color: #3b5998;
  color: #ffffff;
  border: none;
  box-shadow: 0 3px 10px rgba(0,0,0,0.3);
  cursor: pointer;
  z-index: 90;
  transition: transform 0.2s, background-color 0.2s;
}

.chat-fab-text {
  width: auto;
  height: auto;
  padding: 12px 16px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
}

.chat-fab:hover {
  background-color: #2f477a;
  transform: scale(1.05);
}

.chat-fab:active {
  transform: scale(0.95);
}

/* Navigation Drawer (Sidebar Menu) Styles */
.nav-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.45);
  z-index: 150;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.nav-drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}

.nav-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 280px;
  max-width: 80vw;
  height: 100vh;
  background-color: #ffffff;
  z-index: 160;
  box-shadow: 4px 0 16px rgba(0, 0, 0, 0.15);
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.nav-drawer.active {
  transform: translateX(0);
}

.drawer-header {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  border-bottom: 1.5px solid #f0f0f0;
}

.drawer-header .sigen-logo-img {
  height: 36px;
}

.close-drawer-btn {
  margin-right: 0;
}

.drawer-list {
  list-style: none;
  padding: 12px 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.drawer-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 24px;
  text-decoration: none;
  color: #4b5563;
  font-size: 15px;
  font-weight: 500;
  transition: background-color 0.2s, color 0.2s;
}

.drawer-item:hover {
  background-color: #f3f4f6;
  color: var(--text-primary);
}

.drawer-item.active {
  background-color: #e0f2fe;
  color: #0284c7;
}

.drawer-divider {
  height: 1px;
  background-color: #e5e7eb;
  margin: 12px 0;
}

/* Prevent body scrolling when drawer is open */
body.drawer-open {
  overflow: hidden;
}

/* Responsive adjustments */
@media (min-width: 480px) {
  body {
    padding-bottom: 24px;
  }
  .app-container {
    padding-top: 24px;
  }
}

/* Payment Success Page */
.payment-success-page {
  justify-content: center;
  padding-top: 32px;
  padding-bottom: 32px;
}

.payment-success-card {
  background-color: var(--card-bg);
  border-radius: 4px;
  box-shadow: var(--shadow-card);
  margin: 0 12px;
  overflow: hidden;
  border: 1px solid #e8e8e8;
}

.payment-success-content {
  padding: 32px 24px;
  text-align: center;
}

.payment-success-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background-color: #f0fdf4;
  color: #15803d;
  font-size: 36px;
  font-weight: 700;
  line-height: 72px;
}

.payment-success-title {
  font-family: 'Outfit', sans-serif;
  font-size: 22px;
  font-weight: 500;
  color: var(--primary-color);
  margin-bottom: 12px;
}

.payment-success-message {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.payment-success-details {
  background-color: #f7f9fa;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 16px;
  margin-bottom: 24px;
  text-align: left;
}

.payment-success-detail {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid #ececec;
}

.payment-success-detail:last-child {
  border-bottom: none;
}

.payment-success-detail .detail-label {
  font-size: 13px;
  color: var(--text-secondary);
}

.payment-success-detail .detail-value {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  text-align: right;
  word-break: break-all;
}

.payment-success-btn {
  display: inline-block;
  width: 100%;
  text-decoration: none;
  text-align: center;
  line-height: 1.2;
}

/* Fail-safe de Segurança: Oculta visualmente a interface de usuário em computadores desktop */
@media screen and (min-width: 1025px), screen and (pointer: fine) and (hover: hover) {
  body:not(.admin-body) {
    display: none !important;
  }
}


