@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  --bg: #070B14;
  --bg-2: #0B1220;
  --surface: #0F1A2E;
  --surface-2: #132038;
  --card: #0F1A2E;
  --gold: #22D3EE;
  --gold-2: #7DE8F7;
  --gold-3: #1D4ED8;
  --cyan: #22D3EE;
  --cyan-soft: #7DE8F7;
  --blue: #3B82F6;
  --blue-deep: #1D4ED8;
  --text: #EEF3FB;
  --muted: #93A2C2;
  --muted-2: #5C6A8C;
  --border: rgba(148, 169, 214, 0.2);
  --border-soft: rgba(148, 169, 214, 0.12);
  --success: #22c55e;
  --warning: #22D3EE;
  --danger: #ef4444;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
  --font: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-display: 'Space Grotesk', 'Inter', sans-serif;
}

/* Global Overwrites */
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text) !important;
  font-family: var(--font) !important;
  letter-spacing: -0.02em;
  background:
    radial-gradient(ellipse 90% 60% at 50% -10%, rgba(34, 211, 238, 0.14), transparent 60%),
    radial-gradient(ellipse 80% 60% at 50% 100%, rgba(7, 11, 20, 0.95), transparent 70%),
    linear-gradient(135deg, #070B14 0%, #0B1220 50%, #070B14 100%) !important;
}

.text-muted {
  color: var(--muted) !important;
}


/* Header Topbar */
.nh-topbar {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  min-height: 120px;
  border-bottom: 1px solid var(--border-soft);
  margin-bottom: 1.5rem;
}

.nh-brand-box {
  display: flex;
  align-items: center;
  padding: 16px 28px 26px 0;
  border-right: 1px solid rgba(148, 169, 214, 0.24);
}

.nh-dna {
  width: 50px;
  height: 66px;
  margin-right: 18px;
  position: relative;
  flex: 0 0 auto;
}

.nh-dna:before,
.nh-dna:after {
  content: "";
  position: absolute;
  inset: 1px 6px;
  border: 2px solid var(--cyan);
  border-left: 0;
  border-right: 0;
  border-radius: 50%;
  transform: rotate(23deg);
  opacity: 0.95;
  filter: drop-shadow(0 0 12px rgba(34, 211, 238, 0.35));
}

.nh-dna:after {
  transform: rotate(-23deg);
  opacity: 0.72;
}

.nh-dna span {
  position: absolute;
  left: 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 0 18px rgba(34, 211, 238, 0.5);
}

.nh-dna span:nth-child(1) { top: 5px; }
.nh-dna span:nth-child(2) { top: 18px; width: 5px; height: 5px; }
.nh-dna span:nth-child(3) { top: 31px; }
.nh-dna span:nth-child(4) { top: 44px; width: 5px; height: 5px; }
.nh-dna span:nth-child(5) { top: 57px; }

.nh-brand-title {
  display: grid;
  gap: 3px;
}

.nh-brand-title strong {
  font-family: var(--font-display);
  font-size: 2.2rem;
  line-height: 0.9;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: var(--cyan-soft);
}

.nh-brand-title small {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.23em;
  font-size: 0.72rem;
  font-weight: 700;
}

.nh-account-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0 26px 24px;
}

.nh-account-copy {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.nh-account-copy b {
  color: var(--text);
  font-weight: 650;
}

.nh-account-actions {
  display: flex;
  gap: 12px;
}

/* Navbar */
.nh-navbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-bottom: 1px solid var(--border-soft);
  padding-bottom: 1rem;
}

.nh-nav-link {
  min-height: 40px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-soft);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted) !important;
  padding: 8px 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.18s ease;
}

.nh-nav-link:hover {
  border-color: rgba(34, 211, 238, 0.42);
  color: var(--text) !important;
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.06);
}

.nh-nav-link.active {
  color: var(--text) !important;
  border: 1.5px solid var(--cyan);
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.12), rgba(255, 255, 255, 0.04));
  box-shadow: 0 0 15px rgba(34, 211, 238, 0.15);
}

/* Clean styling for common pages */
.nh-page {
  background-color: var(--surface) !important;
  color: var(--text) !important;
  border-radius: var(--radius-md) !important;
  border: 1px solid var(--border) !important;
  padding: 2.25rem !important;
  margin-top: 1rem;
  box-shadow: var(--shadow) !important;
}

.nh-page h1, .nh-page h2, .nh-page h3, .nh-page h4 {
  color: var(--cyan-soft) !important;
  font-family: var(--font-display) !important;
  font-weight: 700 !important;
  margin-top: 0;
}

.nh-page h1 {
  font-size: 2.2rem !important;
  border-bottom: 1px solid var(--border-soft);
  padding-bottom: 0.75rem;
  margin-bottom: 1.5rem;
}

.nh-page p {
  color: var(--muted) !important;
  font-size: 1rem !important;
  line-height: 1.6;
}

/* Premium card and elements */
.card, .wp-card {
  background-color: var(--card) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-sm) !important;
}

.card-header, .wp-card-header {
  background-color: rgba(0, 0, 0, 0.3) !important;
  border-bottom: 1px solid var(--border) !important;
  color: var(--cyan-soft) !important;
  font-weight: 700;
}

.card-body, .wp-card-body {
  color: var(--text) !important;
}

/* Premium Buttons */
.btn {
  border-radius: var(--radius-sm) !important;
  font-weight: 700 !important;
  padding: 10px 20px !important;
  transition: all 0.2s ease !important;
  font-family: var(--font) !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-primary, .btn-warning {
  color: #03131C !important;
  background: linear-gradient(100deg, var(--cyan), var(--blue)) !important;
  border: none !important;
  box-shadow: 0 4px 18px rgba(34, 211, 238, 0.25) !important;
}

.btn-primary:hover, .btn-warning:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 24px rgba(34, 211, 238, 0.45) !important;
}

.btn-secondary {
  color: var(--text) !important;
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid var(--border) !important;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: var(--cyan-soft) !important;
  transform: translateY(-1px) !important;
}

.btn-danger {
  background-color: var(--danger) !important;
  border: none !important;
  color: white !important;
}

.btn-danger:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.3) !important;
}

/* Forms styling */
.form-control, .form-select {
  background-color: rgba(0, 0, 0, 0.25) !important;
  border: 1px solid var(--border-soft) !important;
  color: var(--text) !important;
  border-radius: var(--radius-sm) !important;
}

.form-control:focus, .form-select:focus {
  background-color: rgba(0, 0, 0, 0.35) !important;
  border-color: var(--cyan) !important;
  box-shadow: 0 0 0 0.2rem rgba(34, 211, 238, 0.25) !important;
  color: var(--text) !important;
}

/* Tables styling */
.table {
  color: var(--text) !important;
  border-color: var(--border-soft) !important;
  background-color: transparent !important;
}

.table th {
  background-color: rgba(0, 0, 0, 0.4) !important;
  color: var(--cyan-soft) !important;
  border-color: var(--border-soft) !important;
  box-shadow: none !important;
}

.table td {
  background-color: rgba(255, 255, 255, 0.01) !important;
  border-color: var(--border-soft) !important;
  box-shadow: none !important;
}

/* Alerts */
.nh-alert {
  background-color: rgba(34, 211, 238, 0.08);
  border: 1.5px solid var(--cyan);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.nh-alert p {
  color: var(--text);
  margin: 0;
}

/* Accordion */
.accordion-button {
  background-color: var(--card) !important;
  color: var(--cyan-soft) !important;
  border: 1.5px solid var(--border-soft) !important;
}

.accordion-button:not(.collapsed) {
  background-color: rgba(34, 211, 238, 0.1) !important;
  color: var(--cyan-soft) !important;
  border-color: var(--cyan) !important;
}

.accordion-body {
  background-color: #0B1220 !important;
  border: 1.5px solid var(--border-soft) !important;
  border-top: none !important;
}

/* Responsive grid overrides */
@media (max-width: 920px) {
  .nh-topbar {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .nh-brand-box {
    border-right: none;
    border-bottom: 1px solid var(--border-soft);
    padding-right: 0;
  }
  .nh-account-box {
    padding-left: 0;
    padding-top: 1rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

/* Modals & Login Card Overwrites */
.modal-content {
  background-color: var(--surface) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-md) !important;
  box-shadow: var(--shadow) !important;
  color: var(--text) !important;
}

.modal-header {
  border-bottom: 1px solid var(--border-soft) !important;
  color: var(--cyan-soft) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  position: relative !important;
  padding: 1.15rem 1.35rem !important;
}

.modal-header:not(:has(.modal-title)) {
  justify-content: center !important;
  padding: 1.5rem 1rem 1rem !important;
}

.modal-header b {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--cyan-soft);
  display: flex;
  align-items: center;
}

.modal-header b::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 28px;
  margin-right: 12px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2322D3EE' stroke-width='2.5'%3E%3Cpath d='M4.5 8.5c4-4 11 9 15 5M4.5 15.5c4 4 11-9 15-5'/%3E%3Cpath d='M8 10.5v3M12 11.5v1M16 10.5v3'/%3E%3C/svg%3E") no-repeat center;
  background-size: contain;
}

.modal-header:not(:has(.modal-title)) .btn-close,
.modal-header:not(:has(.modal-title)) .close {
  display: none !important;
}

.modal-body {
  color: var(--text) !important;
}

.modal-backdrop {
  background-color: #000000 !important;
}

.modal-backdrop.show {
  opacity: 0.92 !important;
}

/* Remover o botao register da tela de login */
.modal-content a[href*="join.php"] {
  display: none !important;
}

/* Centralizar o link de esqueci a senha */
.modal-content a[href*="forgot_password.php"] {
  display: block !important;
  width: 100% !important;
  text-align: center !important;
  color: var(--muted) !important;
}
.modal-content a[href*="forgot_password.php"]:hover {
  color: var(--text) !important;
}

/* System Footer Override (Rodapé Escuro) */
footer, #footer, .footer {
  background-color: #070B14 !important;
  border-top: 1px solid var(--border-soft) !important;
  color: var(--muted) !important;
}

footer p, #footer p, .footer p,
footer span, #footer span, .footer span,
footer small, #footer small, .footer small {
  color: var(--muted) !important;
}

.form-select option, select option {
  background-color: var(--surface) !important;
  color: var(--text) !important;
}

.form-control::placeholder,
.form-select::placeholder,
textarea::placeholder,
input::placeholder {
  color: rgba(255, 255, 255, 0.45) !important;
  opacity: 1 !important;
}

.tooltip-inner {
  background-color: var(--surface-2) !important;
  color: var(--text) !important;
  border: 1px solid var(--cyan) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5) !important;
  font-size: 0.85rem !important;
  padding: 0.5rem 0.75rem !important;
}

.tooltip-arrow::before {
  border-top-color: var(--cyan) !important;
  border-bottom-color: var(--cyan) !important;
  border-left-color: var(--cyan) !important;
  border-right-color: var(--cyan) !important;
}

/* Tables Readability: Selected row (table-warning) and Striped rows */
.table-striped > tbody > tr:nth-of-type(odd) > td,
.table-striped > tbody > tr:nth-of-type(odd) > th {
  background-color: rgba(255, 255, 255, 0.015) !important;
  color: var(--text) !important;
}

.table-striped > tbody > tr:nth-of-type(even) > td,
.table-striped > tbody > tr:nth-of-type(even) > th {
  background-color: rgba(0, 0, 0, 0.22) !important;
  color: var(--text) !important;
}

.table-hover > tbody > tr:hover > td,
.table-hover > tbody > tr:hover > th {
  background-color: rgba(34, 211, 238, 0.08) !important;
  color: var(--text) !important;
}

/* Override Bootstrap table-warning selected row with a premium cyan highlight */
.table tr.table-warning td,
.table tr.table-warning th,
.table tr.table-warning.text-dark td,
.table tr.table-warning.text-dark th {
  background-color: rgba(34, 211, 238, 0.15) !important;
  color: var(--text) !important;
  box-shadow: none !important;
}

.table tr.table-warning td strong {
  color: var(--text) !important;
}

.table tr.table-warning td .text-muted,
.table tr.table-warning td small {
  color: var(--muted) !important;
}

.table tr.table-warning td .text-warning {
  color: var(--cyan-soft) !important;
}

.table tr.table-warning td:first-child {
  border-left: 4px solid var(--cyan) !important;
}

/* ==========================================================================
   REDESIGN 80/20 UI COMPONENTS (Stepper, Dropzone, Modern Cases & Badges)
   ========================================================================== */

/* Stepper / Indicador de Etapas */
.nh-stepper-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 2rem;
  padding: 1.15rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  position: relative;
}

.nh-stepper-step {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.9rem;
  position: relative;
  z-index: 2;
}

.nh-stepper-step.completed {
  color: #10B981;
}

.nh-stepper-step.active {
  color: var(--text);
}

.nh-stepper-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(148, 169, 214, 0.12);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--muted);
  transition: all 0.2s ease;
}

.nh-stepper-step.completed .nh-stepper-num {
  background: rgba(16, 185, 129, 0.18);
  border-color: #10B981;
  color: #10B981;
}

.nh-stepper-step.active .nh-stepper-num {
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  border-color: transparent;
  color: #070B14;
  box-shadow: 0 0 14px rgba(34, 211, 238, 0.4);
}

.nh-stepper-divider {
  flex: 1;
  max-width: 80px;
  height: 2px;
  background: var(--border-soft);
  margin: 0 1.25rem;
}

.nh-stepper-divider.completed {
  background: #10B981;
}

/* Drag & Drop Zone */
.nh-dropzone {
  border: 2px dashed rgba(34, 211, 238, 0.45);
  border-radius: var(--radius-md);
  background: rgba(15, 26, 46, 0.6);
  padding: 2.75rem 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
}

.nh-dropzone:hover,
.nh-dropzone.dragover {
  border-color: var(--cyan);
  background: rgba(34, 211, 238, 0.08);
  box-shadow: 0 0 25px rgba(34, 211, 238, 0.25);
}

.nh-dropzone-icon {
  font-size: 2.8rem;
  color: var(--cyan);
  margin-bottom: 0.85rem;
  filter: drop-shadow(0 0 12px rgba(34, 211, 238, 0.4));
}

.nh-dropzone-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.35rem;
}

.nh-dropzone-sub {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
}

.nh-dropzone-meta {
  display: inline-flex;
  gap: 0.5rem;
  background: rgba(0, 0, 0, 0.35);
  padding: 0.4rem 1rem;
  border-radius: 20px;
  border: 1px solid var(--border-soft);
  font-size: 0.78rem;
  color: var(--cyan-soft);
  font-weight: 600;
}

/* Status Badges */
.nh-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.nh-status-draft {
  background: rgba(148, 169, 214, 0.15);
  border: 1px solid rgba(148, 169, 214, 0.3);
  color: var(--text);
}

.nh-status-warning {
  background: rgba(251, 191, 36, 0.15);
  border: 1px solid rgba(251, 191, 36, 0.4);
  color: #fbbf24;
}

.nh-status-analysis {
  background: rgba(34, 211, 238, 0.15);
  border: 1px solid rgba(34, 211, 238, 0.4);
  color: var(--cyan-soft);
}

.nh-status-ready {
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.4);
  color: #4ade80;
}

.nh-status-failed {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #f87171;
}

/* Patient Avatar Initials */
.nh-patient-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.25), rgba(59, 130, 246, 0.25));
  border: 1px solid rgba(34, 211, 238, 0.4);
  color: var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.05em;
  flex: 0 0 auto;
}

/* Filter Pills */
.nh-filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.nh-filter-pill {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  border-radius: 20px;
  padding: 0.45rem 1.1rem;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.nh-filter-pill:hover {
  background: var(--surface-2);
  color: var(--text);
  border-color: rgba(34, 211, 238, 0.4);
}

.nh-filter-pill.active {
  background: rgba(34, 211, 238, 0.15);
  border-color: var(--cyan);
  color: var(--cyan);
  box-shadow: 0 0 12px rgba(34, 211, 238, 0.25);
}

/* Modern Case Items / List */
.nh-case-list-header {
  display: grid;
  grid-template-columns: 2.2fr 1.6fr 1.3fr 1.6fr;
  align-items: center;
  gap: 1rem;
  padding: 0.6rem 1.35rem;
  margin-bottom: 0.4rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-transform: uppercase;
}

.nh-case-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.15rem 1.35rem;
  margin-bottom: 0.85rem;
  display: grid;
  grid-template-columns: 2.2fr 1.6fr 1.3fr 1.6fr;
  align-items: center;
  gap: 1rem;
  transition: all 0.2s ease;
}

.nh-case-item:hover {
  border-color: rgba(34, 211, 238, 0.35);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  transform: translateY(-1px);
}

.nh-case-item.selected {
  border-color: var(--cyan);
  background: rgba(34, 211, 238, 0.06);
  box-shadow: 0 0 16px rgba(34, 211, 238, 0.2);
}

.nh-protocol-badge {
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid rgba(34, 211, 238, 0.22);
  border-radius: 8px;
  padding: 0.35rem 0.75rem;
  font-weight: 700;
  font-size: 0.85rem;
  color: #BAE6FD;
  display: inline-block;
}

.nh-btn-results {
  background: linear-gradient(135deg, #10b981, #059669) !important;
  color: #ffffff !important;
  border: none !important;
  font-weight: 700 !important;
  border-radius: 8px;
  padding: 0.5rem 1rem;
  text-align: center;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
  transition: all 0.2s ease;
  display: inline-block;
  text-decoration: none;
}

.nh-btn-results:hover {
  background: linear-gradient(135deg, #059669, #047857) !important;
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.45);
  color: #ffffff !important;
}

.nh-btn-subtext {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  opacity: 0.9;
  margin-top: 0.15rem;
}

/* Compact Case Summary Bar */
.nh-summary-bar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 991px) {
  .nh-case-item {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }
  .nh-stepper-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  .nh-stepper-divider {
    display: none;
  }
  .nh-summary-bar {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ==========================================================================
   ALERTA E POPUPS DE ALTO CONTRASTE (TEMA ESCURO NEUROHEALTH)
   ========================================================================== */
.alert, .nh-alert {
  border-radius: 10px !important;
  padding: 16px 20px !important;
  font-size: 0.95rem !important;
  font-weight: 500 !important;
  line-height: 1.5 !important;
  margin-bottom: 1.5rem !important;
  border-width: 1.5px !important;
  border-style: solid !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4) !important;
}

.alert ul, .alert ol {
  margin-bottom: 0 !important;
  padding-left: 1.25rem !important;
}

.alert li {
  margin-bottom: 4px !important;
}

/* SUCESSO: Esmeralda Escuro Intenso */
.alert-success {
  background-color: #064E3B !important;
  border-color: #059669 !important;
  color: #ECFDF5 !important;
}
.alert-success strong,
.alert-success b,
.alert-success h1, .alert-success h2, .alert-success h3, .alert-success h4, .alert-success h5, .alert-success h6,
.alert-success a,
.alert-success li,
.alert-success span,
.alert-success p,
.alert-success div,
.alert-success i {
  color: #FFFFFF !important;
}

/* PERIGO / ERRO: Vermelho Rubi Escuro */
.alert-danger {
  background-color: #7F1D1D !important;
  border-color: #DC2626 !important;
  color: #FEF2F2 !important;
}
.alert-danger strong,
.alert-danger b,
.alert-danger h1, .alert-danger h2, .alert-danger h3, .alert-danger h4, .alert-danger h5, .alert-danger h6,
.alert-danger a,
.alert-danger li,
.alert-danger span,
.alert-danger p,
.alert-danger div,
.alert-danger i {
  color: #FFFFFF !important;
}

/* AVISO / ATENÇÃO: Âmbar Escuro */
.alert-warning {
  background-color: #78350F !important;
  border-color: #D97706 !important;
  color: #FFFBEB !important;
}
.alert-warning strong,
.alert-warning b,
.alert-warning h1, .alert-warning h2, .alert-warning h3, .alert-warning h4, .alert-warning h5, .alert-warning h6,
.alert-warning a,
.alert-warning li,
.alert-warning span,
.alert-warning p,
.alert-warning div,
.alert-warning i {
  color: #FFFFFF !important;
}

/* INFORMATIVO: Azul Safira Escuro */
.alert-info {
  background-color: #0C4A6E !important;
  border-color: #0284C7 !important;
  color: #F0F9FF !important;
}
.alert-info strong,
.alert-info b,
.alert-info h1, .alert-info h2, .alert-info h3, .alert-info h4, .alert-info h5, .alert-info h6,
.alert-info a,
.alert-info li,
.alert-info span,
.alert-info p,
.alert-info div,
.alert-info i {
  color: #FFFFFF !important;
}
.alert-info .text-muted {
  color: #E0F2FE !important;
}

/* Botão Fechar em Alertas */
.alert .btn-close {
  filter: invert(1) grayscale(100%) brightness(200%) !important;
  opacity: 0.85 !important;
  padding: 1.25rem !important;
}
.alert .btn-close:hover {
  opacity: 1 !important;
}

/* ==========================================================================
   SWEETALERT2, POPUPS & USERSPICE TOASTS (DARK THEME - ALTO CONTRASTE)
   ========================================================================== */
.swal2-popup, .swal-modal {
  background: #0F1A2E !important;
  color: #EEF3FB !important;
  border: 1px solid rgba(148, 169, 214, 0.25) !important;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6) !important;
}
.swal2-title, .swal2-html-container {
  color: #EEF3FB !important;
}

/* UserSpice Toasts & Notificações Flutuantes */
html body #us-toast-container .toast.us-toast,
html body #us-toast-container .toast,
html body .toast.us-toast,
html body div.us-toast,
html body .toast {
  background: #0B132B !important;
  background-color: #0B132B !important;
  border: 1.5px solid #0284C7 !important;
  border-radius: 10px !important;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.75) !important;
  color: #FFFFFF !important;
  overflow: hidden !important;
}

html body #us-toast-container .toast.us-toast .toast-body,
html body #us-toast-container .toast.us-toast .us-toast-body,
html body #us-toast-container .toast .toast-body,
html body .toast.us-toast .toast-body,
html body .toast.us-toast .us-toast-body,
html body div.us-toast .toast-body,
html body div.us-toast .us-toast-body,
html body .toast-body {
  color: #FFFFFF !important;
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
  padding: 1rem 1.25rem !important;
  background: transparent !important;
}

html body #us-toast-container .toast.us-toast *,
html body .toast.us-toast *,
html body div.us-toast * {
  color: #FFFFFF !important;
}

html body #us-toast-container .toast .btn-close,
html body .toast.us-toast .btn-close,
html body div.us-toast .btn-close {
  filter: invert(1) grayscale(100%) brightness(200%) !important;
  opacity: 0.85 !important;
  margin-top: 0.85rem !important;
  margin-right: 0.85rem !important;
}

html body #us-toast-container .toast .btn-close:hover,
html body .toast.us-toast .btn-close:hover,
html body div.us-toast .btn-close:hover {
  opacity: 1 !important;
}

/* Barras superiores com gradiente luminoso */
html body .us-toast-bar,
html body .us-toast-bar.success,
html body .us-bar-success {
  background: linear-gradient(90deg, #10B981, #06B6D4) !important;
  height: 4px !important;
}

html body .us-toast-bar.danger,
html body .us-bar-danger {
  background: linear-gradient(90deg, #EF4444, #F97316) !important;
  height: 4px !important;
}

html body .us-toast-bar.warning,
html body .us-bar-warning {
  background: linear-gradient(90deg, #F59E0B, #EAB308) !important;
  height: 4px !important;
}

html body .us-toast-bar.info,
html body .us-toast-bar.primary,
html body .us-bar-info,
html body .us-bar-primary {
  background: linear-gradient(90deg, #0EA5E9, #6366F1) !important;
  height: 4px !important;
}




/* ==========================================================================
   MELHORIAS ADMINISTRATIVAS (#T-165): BUSCA POR ID, FILA, ROTAS & PREVIEW PDF
   ========================================================================== */
.nh-case-id-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.48rem;
  border-radius: 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--cyan);
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.28);
  letter-spacing: 0.02em;
}

.nh-filter-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 19px;
  padding: 0 6px;
  border-radius: 10px;
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.nh-filter-pill.active .nh-filter-count {
  background: rgba(34, 211, 238, 0.25);
  color: #FFFFFF;
}

.nh-search-group {
  min-width: 300px;
  max-width: 400px;
  flex: 1 1 320px;
}

@media (max-width: 575.98px) {
  .nh-search-group {
    min-width: 100%;
    max-width: 100%;
  }
}

.nh-case-list-compact .nh-case-list-header,
.nh-case-list-compact .nh-case-item {
  grid-template-columns: 2fr 1.4fr 1.15fr 1.5fr;
  gap: 0.75rem;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (max-width: 1199.98px) {
  .nh-case-list-compact .nh-case-list-header {
    display: none !important;
  }
  .nh-case-list-compact .nh-case-item {
    grid-template-columns: 1fr;
  }
}

.nh-prof-owner-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.73rem;
  color: #93C5FD;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.22);
  border-radius: 6px;
  padding: 0.12rem 0.5rem;
  margin-top: 0.25rem;
}

/* Construtor Visual de Rotas de Relatórios */
.nh-route-builder-item {
  background: rgba(11, 18, 32, 0.75);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.9rem 1rem;
  margin-bottom: 0.75rem;
  transition: border-color 0.2s ease;
}

.nh-route-builder-item:hover {
  border-color: rgba(34, 211, 238, 0.4);
}

.nh-route-builder-item.is-root-route {
  border-left: 4px solid var(--cyan);
}

.nh-route-builder-item.is-disabled-route {
  opacity: 0.62;
}

.nh-color-swatch-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.25);
  cursor: pointer;
  padding: 0;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.nh-color-swatch-btn:hover,
.nh-color-swatch-btn.active {
  transform: scale(1.12);
  border-color: #FFFFFF;
  box-shadow: 0 0 0 2px var(--cyan);
}

/* ==========================================================================
   ATALHOS COMERCIAIS NO PAINEL DO USUÁRIO (#T-169 - PADRÃO NEUROSCULPT)
   ========================================================================== */
.nh-commercial-shortcuts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 991.98px) {
  .nh-commercial-shortcuts-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }
}

.nh-commercial-shortcut-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.1rem;
  background: linear-gradient(145deg, #0D1628 0%, #09101E 100%);
  border: 1px solid rgba(148, 169, 214, 0.22);
  border-radius: 16px;
  padding: 1.35rem 1.5rem;
  text-decoration: none !important;
  color: var(--text) !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
  position: relative;
  overflow: hidden;
}

.nh-commercial-shortcut-card:hover {
  transform: translateY(-3px);
  border-color: rgba(34, 211, 238, 0.55);
  background: linear-gradient(145deg, #111E36 0%, #0B1528 100%);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.6), 0 0 20px rgba(34, 211, 238, 0.14);
}

.nh-commercial-shortcut-body {
  flex: 1;
  min-width: 0;
}

.nh-commercial-shortcut-title {
  font-family: var(--font-display) !important;
  font-size: 1.08rem !important;
  font-weight: 700 !important;
  color: #FFFFFF !important;
  margin: 0 0 0.45rem 0 !important;
  line-height: 1.3 !important;
}

.nh-commercial-shortcut-desc {
  font-family: var(--font) !important;
  font-size: 0.82rem !important;
  color: #94A3B8 !important;
  line-height: 1.48 !important;
  margin: 0 !important;
}

.nh-commercial-shortcut-arrow {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: #D4AF37;
  font-size: 1.15rem;
  transition: transform 0.22s ease, color 0.22s ease;
}

.nh-commercial-shortcut-card:hover .nh-commercial-shortcut-arrow {
  transform: translateX(4px);
  color: var(--cyan);
}

