@import "default.css";
@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&display=swap");

:root {
  --primary: #1aadff;
  --info: #1aadff;
  --blue: #1aadff;
  --rh-accent: #1aadff;
  --rh-accent-strong: #58c7ff;
  --rh-accent-soft: rgba(26, 173, 255, 0.18);
  --rh-neon: #79d9ff;
  --rh-neon-soft: rgba(121, 217, 255, 0.22);
  --rh-edge: rgba(26, 173, 255, 0.25);
  --rh-grid: rgba(255, 255, 255, 0.03);
  --rh-scan: rgba(26, 173, 255, 0.08);
  --rh-bg-0: #0a0f16;
  --rh-bg-1: #0d1420;
  --rh-bg-2: #101a28;
  --rh-surface: #0f1826;
  --rh-surface-2: #0f1d2d;
  --rh-border: #1c2b3f;
  --rh-border-soft: rgba(45, 70, 98, 0.6);
  --rh-border-strong: #24405a;
  --rh-text: #e6f2ff;
  --rh-text-muted: #9bb1c6;
  --rh-success: #4bd88a;
  --rh-warning: #ffd166;
  --rh-danger: #ff6b6b;
  --rh-focus: rgba(26, 173, 255, 0.45);
  --rh-focus-strong: rgba(26, 173, 255, 0.7);
  --rh-radius-lg: 18px;
  --rh-radius-md: 12px;
  --rh-radius-sm: 8px;
  --rh-blur: 14px;
  --rh-glass: rgba(13, 21, 33, 0.72);
  --rh-glass-strong: rgba(12, 19, 30, 0.88);
  --rh-elev-1: 0 8px 22px rgba(4, 8, 14, 0.5);
  --rh-elev-2: 0 14px 40px rgba(4, 8, 14, 0.6);
  --rh-elev-3: 0 18px 50px rgba(4, 8, 14, 0.7);
  --rh-shadow: 0 16px 45px rgba(4, 8, 14, 0.6);
  --rh-glow: 0 0 0 1px rgba(26, 173, 255, 0.3), 0 0 36px rgba(26, 173, 255, 0.25);
  --rh-glow-soft: 0 0 0 1px rgba(26, 173, 255, 0.2), 0 0 22px rgba(26, 173, 255, 0.16);
  --rh-glow-strong: 0 0 0 1px rgba(26, 173, 255, 0.4), 0 0 42px rgba(26, 173, 255, 0.32);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  pointer-events: none;
}

.modal.show {
  display: flex;
  pointer-events: auto;
}

.modal-dialog {
  margin: 0;
  pointer-events: auto;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-backdrop {
  background: #02060d;
  z-index: 99990;
  pointer-events: auto;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  letter-spacing: 0.01em;
  font-weight: 600;
}

body.dark-mode {
  color: var(--rh-text);
  background:
    radial-gradient(1200px 650px at 8% -10%, rgba(26, 173, 255, 0.3), transparent 60%),
    radial-gradient(900px 600px at 92% 10%, rgba(88, 199, 255, 0.22), transparent 55%),
    radial-gradient(700px 420px at 50% 120%, rgba(26, 173, 255, 0.12), transparent 65%),
    linear-gradient(180deg, #070c13, #0b141f 50%, #070c13);
}

body.dark-mode::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(120deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0) 45%),
    radial-gradient(circle at 20% 20%, rgba(26, 173, 255, 0.14), transparent 40%),
    radial-gradient(circle at 70% 15%, rgba(88, 199, 255, 0.16), transparent 40%);
  opacity: 0.55;
  z-index: 0;
  animation: aurora-drift 18s ease-in-out infinite alternate;
  will-change: transform;
  transform: translate3d(0, 0, 0);
}

body.dark-mode::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--rh-grid) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(180deg, rgba(26, 173, 255, 0.08), transparent 60%),
    repeating-linear-gradient(180deg, rgba(8, 14, 22, 0) 0px, rgba(8, 14, 22, 0) 2px, rgba(8, 14, 22, 0.35) 3px, rgba(8, 14, 22, 0) 4px);
  background-size: 40px 40px, 40px 40px, 100% 100%, 100% 6px;
  opacity: 0.3;
  z-index: 0;
  animation: scanline 10s linear infinite;
}

.wrapper {
  position: relative;
  z-index: 1;
}

::selection {
  background: rgba(26, 173, 255, 0.35);
  color: #06101a;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-thumb {
  background: rgba(26, 173, 255, 0.35);
  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(26, 173, 255, 0.55);
}

::-webkit-scrollbar-track {
  background: rgba(10, 16, 24, 0.8);
}

a {
  color: var(--rh-accent);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--rh-accent-strong);
}

a:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--rh-focus);
  border-radius: 6px;
}

.main-header.navbar,
.main-header {
  background: rgba(8, 14, 22, 0.78);
  border-bottom: 1px solid var(--rh-border-soft);
  box-shadow: var(--rh-elev-1), 0 0 24px rgba(26, 173, 255, 0.12);
  backdrop-filter: blur(var(--rh-blur));
  -webkit-backdrop-filter: blur(var(--rh-blur));
  position: relative;
  overflow: visible;
  z-index: 2050;
}

.main-header .nav-link {
  color: var(--rh-text-muted);
  transition: color 0.15s ease, opacity 0.15s ease;
}

.main-header .nav-link:hover,
.main-header .nav-link:focus {
  color: var(--rh-text);
}

.main-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(26, 173, 255, 0.7), transparent);
  opacity: 0.85;
}

.content-wrapper,
.main-footer {
  background: rgba(10, 16, 24, 0.94);
}

.content-wrapper {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(26, 173, 255, 0.18), transparent 34%),
    radial-gradient(circle at top right, rgba(88, 199, 255, 0.14), transparent 28%),
    linear-gradient(180deg, rgba(7, 12, 19, 0.92), rgba(11, 20, 31, 0.94)) !important;
}

.content-wrapper::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 42px 42px;
  background-position: center;
  opacity: 0.95;
}

.content-wrapper > * {
  position: relative;
  z-index: 1;
}

.content-wrapper .content,
.content-wrapper .content-header,
.content-wrapper .container-fluid {
  position: relative;
  z-index: 1;
}

.main-footer {
  border-top: 1px solid var(--rh-border-soft);
  color: var(--rh-text-muted);
  background: linear-gradient(180deg, rgba(11, 19, 29, 0.95), rgba(7, 12, 19, 0.98));
  position: relative;
}

.main-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(26, 173, 255, 0.08), transparent);
  opacity: 0.55;
}

.main-sidebar,
[class*=sidebar-dark] .brand-link {
  background: linear-gradient(180deg, #0b121c 0%, #0c1622 100%);
  border-right: 1px solid var(--rh-border-soft);
}

.main-sidebar {
  position: relative;
  overflow: hidden;
}

.main-sidebar::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 1px;
  height: 100%;
  background: linear-gradient(180deg, rgba(26, 173, 255, 0.45), rgba(26, 173, 255, 0) 45%, rgba(26, 173, 255, 0.3));
  opacity: 0.8;
}

.main-sidebar .brand-text,
.sidebar .nav-link p,
.sidebar .user-panel .info {
  color: var(--rh-text-muted);
}

[class*=sidebar-dark] .brand-link,
[class*=sidebar-dark] .brand-link .pushmenu {
  color: var(--rh-text);
  background: linear-gradient(135deg, rgba(26, 173, 255, 0.12), rgba(26, 173, 255, 0));
}

.nav-sidebar > .nav-item > .nav-link {
  color: rgba(230, 242, 255, 0.8);
  border-radius: var(--rh-radius-md);
  margin: 2px 10px;
  padding: 0.6rem 0.85rem;
  font-weight: 500;
  position: relative;
  overflow: hidden;
  transition: all 0.2s ease;
}

.nav-sidebar > .nav-item > .nav-link:hover {
  color: #ffffff;
  background: rgba(26, 173, 255, 0.14);
}

.nav-sidebar > .nav-item > .nav-link.active {
  color: #04121b !important;
  background: linear-gradient(135deg, #7adfff 0%, var(--rh-accent) 55%, #4fbfff 100%);
  background-size: 200% 200%;
  box-shadow: var(--rh-glow-strong);
  animation: nav-flow 6s ease infinite;
}

.nav-sidebar > .nav-item > .nav-link.active .nav-icon,
.nav-sidebar > .nav-item > .nav-link.active i,
.nav-sidebar > .nav-item > .nav-link.active p,
.nav-sidebar > .nav-item > .nav-link.active .right {
  color: #04121b !important;
  text-shadow: none;
}

.nav-sidebar .nav-link .nav-icon,
.nav-sidebar .nav-link i {
  color: inherit;
  transition: color 0.2s ease;
}

.nav-sidebar .nav-link p {
  color: inherit;
}

.nav-sidebar .nav-treeview > .nav-item > .nav-link {
  margin-left: 20px;
  padding-left: 0.95rem;
  border-left: 1px solid rgba(26, 173, 255, 0.12);
}

.nav-sidebar .nav-treeview > .nav-item > .nav-link.active {
  color: #ffffff !important;
  background: rgba(26, 173, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(26, 173, 255, 0.2), 0 0 18px rgba(26, 173, 255, 0.12);
}

.nav-sidebar .nav-treeview > .nav-item > .nav-link.active p,
.nav-sidebar .nav-treeview > .nav-item > .nav-link.active i {
  color: #ffffff !important;
}

.nav-sidebar > .nav-item > .nav-link.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 3px;
  height: 70%;
  transform: translateY(-50%);
  background: linear-gradient(180deg, transparent, rgba(26, 173, 255, 0.9), transparent);
  box-shadow: 0 0 12px rgba(26, 173, 255, 0.6);
  border-radius: 999px;
}

.nav-sidebar > .nav-item > .nav-link:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--rh-focus);
}

.dark-mode .card,
.dark-mode .info-box,
.dark-mode .small-box {
  background: var(--rh-glass);
  color: var(--rh-text);
  border: 1px solid rgba(26, 173, 255, 0.18);
  border-radius: var(--rh-radius-lg);
  box-shadow: var(--rh-elev-2), 0 0 0 1px rgba(26, 173, 255, 0.08), 0 0 30px rgba(26, 173, 255, 0.12);
  backdrop-filter: blur(var(--rh-blur));
  -webkit-backdrop-filter: blur(var(--rh-blur));
  position: relative;
  overflow: hidden;
}

.dark-mode .card::before,
.dark-mode .info-box::before,
.dark-mode .small-box::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(26, 173, 255, 0.6), transparent);
  opacity: 0.7;
}

.card-header,
.card-footer {
  background: var(--rh-glass-strong);
  border-color: var(--rh-border-soft);
}

.card-header {
  padding: 1rem 1.25rem;
}

.card-body {
  padding: 1.25rem;
}

.card-title {
  color: var(--rh-text);
  font-weight: 600;
  letter-spacing: 0.01em;
}

.dark-mode .text-muted {
  color: var(--rh-text-muted) !important;
}

.dark-mode .list-group-item {
  background: rgba(12, 19, 30, 0.82);
  border-color: var(--rh-border-soft);
  color: var(--rh-text);
}

.dark-mode .list-group-item + .list-group-item {
  border-top: 1px solid var(--rh-border-soft);
}

.small-box > .small-box-footer {
  background: rgba(12, 20, 32, 0.9);
  color: var(--rh-text-muted);
}

.dark-mode .callout {
  background: rgba(26, 173, 255, 0.1);
  border-left-color: var(--rh-accent);
}

.info-box .info-box-icon {
  background: rgba(26, 173, 255, 0.16);
  color: var(--rh-accent);
  border-radius: var(--rh-radius-md);
  box-shadow: 0 0 0 1px rgba(26, 173, 255, 0.2), 0 0 18px rgba(26, 173, 255, 0.2);
}

.small-box .icon {
  color: rgba(121, 217, 255, 0.65);
}

.callout.callout-info {
  border-left-color: var(--rh-accent);
}

.alert {
  border: 1px solid rgba(26, 173, 255, 0.18);
  border-radius: var(--rh-radius-lg);
  background: rgba(12, 19, 30, 0.92);
  color: var(--rh-text);
  box-shadow: 0 0 0 1px rgba(26, 173, 255, 0.08), 0 12px 28px rgba(4, 8, 14, 0.42);
  position: relative;
  overflow: hidden;
}

.alert::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(26, 173, 255, 0.1), transparent 35%, rgba(26, 173, 255, 0.05));
  opacity: 0.75;
}

.alert > * {
  position: relative;
  z-index: 1;
}

.alert-success {
  background: linear-gradient(135deg, rgba(75, 216, 138, 0.16), rgba(12, 19, 30, 0.95));
  border-color: rgba(75, 216, 138, 0.28);
  color: #e9fff2;
  box-shadow: 0 0 0 1px rgba(75, 216, 138, 0.12), 0 12px 28px rgba(4, 8, 14, 0.42), 0 0 24px rgba(75, 216, 138, 0.16);
}

.alert-info {
  background: linear-gradient(135deg, rgba(26, 173, 255, 0.16), rgba(12, 19, 30, 0.95));
  border-color: rgba(26, 173, 255, 0.28);
  color: #eef8ff;
  box-shadow: 0 0 0 1px rgba(26, 173, 255, 0.12), 0 12px 28px rgba(4, 8, 14, 0.42), 0 0 24px rgba(26, 173, 255, 0.16);
}

.alert-warning {
  background: linear-gradient(135deg, rgba(255, 209, 102, 0.18), rgba(12, 19, 30, 0.95));
  border-color: rgba(255, 209, 102, 0.3);
  color: #fff5d6;
  box-shadow: 0 0 0 1px rgba(255, 209, 102, 0.12), 0 12px 28px rgba(4, 8, 14, 0.42), 0 0 24px rgba(255, 209, 102, 0.14);
}

.alert-danger {
  background: linear-gradient(135deg, rgba(255, 107, 107, 0.16), rgba(12, 19, 30, 0.95));
  border-color: rgba(255, 107, 107, 0.28);
  color: #ffecec;
  box-shadow: 0 0 0 1px rgba(255, 107, 107, 0.12), 0 12px 28px rgba(4, 8, 14, 0.42), 0 0 24px rgba(255, 107, 107, 0.16);
}

.alert .close,
.alert .mailbox-attachment-close {
  color: inherit;
  opacity: 0.85;
  text-shadow: none;
}

.alert .close:hover,
.alert .mailbox-attachment-close:hover {
  opacity: 1;
}

.btn {
  border-radius: var(--rh-radius-md);
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--rh-focus);
}

.btn-link {
  box-shadow: none;
}

.btn-primary,
.btn-info {
  background: linear-gradient(135deg, var(--rh-accent), #5dccff);
  background-size: 200% 200%;
  border-color: transparent;
  color: #04121b;
  box-shadow: var(--rh-glow-soft);
  animation: sheen 8s linear infinite;
}

.btn-primary:hover,
.btn-info:hover {
  background: linear-gradient(135deg, #6ed2ff, var(--rh-accent));
  color: #04121b;
  box-shadow: var(--rh-glow-strong);
  filter: brightness(1.05);
}

.btn-warning {
  background: rgba(255, 209, 102, 0.2);
  border-color: rgba(255, 209, 102, 0.5);
  color: #ffe7b2;
}

.btn-warning:hover {
  background: rgba(255, 209, 102, 0.35);
  color: #fff2d1;
}

.btn-outline-primary {
  border-color: var(--rh-accent);
  color: var(--rh-accent);
}

.btn-outline-primary:hover {
  background: var(--rh-accent);
  color: #04121b;
  box-shadow: var(--rh-glow-soft);
}

.badge {
  border-radius: 999px;
  font-weight: 600;
}

.badge-primary,
.badge-info {
  background: var(--rh-accent);
  color: #04121b;
  box-shadow: 0 0 0 1px rgba(26, 173, 255, 0.2), 0 0 14px rgba(26, 173, 255, 0.2);
}

.badge-warning {
  background: var(--rh-warning);
  color: #1b1203;
}

.text-primary {
  color: var(--rh-accent) !important;
}

.dark-mode .form-control,
.dark-mode .custom-select,
.dark-mode .input-group-text,
.dark-mode .custom-file-label,
.dark-mode .custom-file-label::after {
  background-color: rgba(10, 17, 27, 0.78);
  border-color: rgba(26, 173, 255, 0.16);
  border-radius: var(--rh-radius-md);
  color: var(--rh-text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 0 0 1px rgba(26, 173, 255, 0.06);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.dark-mode .form-control::placeholder,
.dark-mode .custom-select::placeholder,
.dark-mode .input-group-text::placeholder {
  color: rgba(155, 177, 198, 0.7);
}

.dark-mode .form-control:focus,
.dark-mode .custom-select:focus,
.dark-mode .input-group-text:focus {
  border-color: var(--rh-accent);
  box-shadow: 0 0 0 0.2rem rgba(26, 173, 255, 0.3), 0 0 18px rgba(26, 173, 255, 0.28);
}

.dark-mode .form-control:hover,
.dark-mode .custom-select:hover {
  border-color: rgba(26, 173, 255, 0.28);
}

.dark-mode .form-control:focus-visible,
.dark-mode .custom-select:focus-visible,
.dark-mode .input-group-text:focus-visible {
  outline: none;
  box-shadow: 0 0 0 0.2rem rgba(26, 173, 255, 0.32), 0 0 18px rgba(26, 173, 255, 0.3);
}

.dark-mode .dropdown-menu {
  background: rgba(10, 17, 28, 0.95);
  border-color: rgba(26, 173, 255, 0.2);
  box-shadow: var(--rh-shadow), 0 0 0 1px rgba(26, 173, 255, 0.12), 0 0 24px rgba(26, 173, 255, 0.18);
  backdrop-filter: blur(var(--rh-blur));
  -webkit-backdrop-filter: blur(var(--rh-blur));
  border-radius: var(--rh-radius-md);
  padding: 0.4rem;
  z-index: 3200;
}

.main-header .dropdown {
  position: relative;
  z-index: 3100;
}

.main-header .dropdown-menu {
  z-index: 3200;
}

.main-header .dropdown-menu-right {
  right: 0;
  left: auto;
}

.dark-mode .dropdown-item {
  color: var(--rh-text-muted);
  border-radius: var(--rh-radius-sm);
  transition: background 0.15s ease, color 0.15s ease;
}

.dark-mode .dropdown-item:hover,
.dark-mode .dropdown-item:focus {
  background: rgba(26, 173, 255, 0.12);
  color: var(--rh-text);
  box-shadow: inset 0 0 0 1px rgba(26, 173, 255, 0.18);
}

.dark-mode .dropdown-item:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--rh-focus);
}

.dark-mode .modal-content {
  background: linear-gradient(180deg, rgba(14, 23, 36, 0.98), rgba(9, 15, 24, 0.98));
  border: 1px solid rgba(26, 173, 255, 0.28);
  color: var(--rh-text);
  box-shadow: var(--rh-elev-2), 0 0 28px rgba(26, 173, 255, 0.16), 0 0 0 1px rgba(26, 173, 255, 0.08);
  border-radius: var(--rh-radius-lg);
}

.dark-mode .modal-header,
.dark-mode .modal-footer {
  border-color: rgba(26, 173, 255, 0.14);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  pointer-events: none;
}

.modal.show {
  display: flex;
  pointer-events: auto;
}

.modal-dialog {
  margin: 0;
  pointer-events: auto;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-backdrop {
  background: #02060d;
  z-index: 99990;
  pointer-events: auto;
}

.modal-backdrop.show {
  opacity: 0.58;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

/* Stronger, high-specificity rules for modals placed directly under body */
body > .modal {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  z-index: 99999 !important;
  display: none !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 1rem !important;
  pointer-events: none !important;
}

body > .modal.show {
  display: flex !important;
  pointer-events: auto !important;
}

body > .modal .modal-dialog {
  margin: 0 !important;
  max-width: 720px !important;
  width: 100% !important;
  pointer-events: auto !important;
}

body > .modal-backdrop {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 99990 !important;
  pointer-events: auto !important;
}

/* Force modal elements to accept pointer events and sit above any overlays */
body > .modal,
.modal {
  z-index: 2000000 !important;
}

body > .modal-backdrop {
  z-index: 1999990 !important;
}

/* Ensure all modal internals are interactive */
body > .modal,
body > .modal *,
.modal,
.modal * {
  pointer-events: auto !important;
}

/* Specific: allow buttons and inputs inside modals */
.modal button,
.modal input,
.modal textarea,
.modal select,
.modal a {
  pointer-events: auto !important;
}

/* SweetAlert2 and generic dialog fixes */
.swal2-container,
[role="dialog"],
.swal2-container.swal2-center {
  position: fixed !important;
  inset: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 1000000 !important;
  pointer-events: auto !important;
}

.swal2-popup,
[role="dialog"] .modal-dialog,
.swal2-modal {
  z-index: 1000010 !important;
  pointer-events: auto !important;
  max-width: 720px !important;
  width: 100% !important;
}

.swal2-container::backdrop,
.swal2-container .swal2-overlay {
  z-index: 999990 !important;
}

.modal-open {
  overflow: hidden;
  padding-right: 0 !important;
}

.dark-mode .modal-body {
  background: linear-gradient(180deg, rgba(11, 18, 28, 0.98), rgba(8, 13, 21, 0.98));
  color: var(--rh-text);
}

.dark-mode .modal-title {
  color: #f4fbff;
  text-shadow: 0 0 14px rgba(26, 173, 255, 0.18);
}

.dark-mode .modal .close,
.dark-mode .modal .mailbox-attachment-close {
  color: var(--rh-text);
  opacity: 0.9;
  text-shadow: none;
}

.dark-mode .modal .close:hover,
.dark-mode .modal .mailbox-attachment-close:hover {
  opacity: 1;
  color: #ffffff;
}

.dark-mode .modal .form-control,
.dark-mode .modal .input-group-text,
.dark-mode .modal .custom-select {
  background-color: rgba(10, 17, 27, 0.9);
}

.dark-mode .modal .btn-primary,
.dark-mode .modal .btn-info {
  box-shadow: var(--rh-glow-soft), 0 0 16px rgba(26, 173, 255, 0.18);
}

.dark-mode .modal .alert {
  margin-bottom: 1rem;
}

.dark-mode .nav-tabs .nav-link.active {
  background: rgba(26, 173, 255, 0.16);
  border-color: var(--rh-border-soft);
  color: var(--rh-text);
  box-shadow: inset 0 -1px 0 rgba(26, 173, 255, 0.45);
}

.nav-tabs .nav-link {
  border-radius: var(--rh-radius-sm) var(--rh-radius-sm) 0 0;
}

.dark-mode .select2-selection--single,
.dark-mode .select2-dropdown,
.dark-mode .select2-dropdown .select2-search__field,
.dark-mode .select2-search--inline .select2-search__field {
  background-color: rgba(12, 20, 32, 0.92);
  border-color: var(--rh-border-soft);
  color: var(--rh-text);
}

.table {
  color: var(--rh-text);
}

.table thead th {
  border-bottom-color: var(--rh-border-soft);
  color: var(--rh-text-muted);
}

.table td,
.table th {
  border-top-color: var(--rh-border-soft);
}

.table-hover tbody tr:hover {
  background: rgba(26, 173, 255, 0.12);
}

.content-header h1,
.content-header .m-0 {
  color: var(--rh-text);
  font-weight: 600;
}

.breadcrumb {
  background: rgba(9, 15, 24, 0.6);
  border: 1px solid rgba(26, 173, 255, 0.18);
  border-radius: var(--rh-radius-md);
  padding: 0.5rem 0.75rem;
  box-shadow: 0 0 0 1px rgba(26, 173, 255, 0.08), 0 8px 16px rgba(4, 8, 14, 0.5);
}

.breadcrumb-item a {
  color: var(--rh-text-muted);
}

.breadcrumb-item.active {
  color: var(--rh-text);
}

@keyframes aurora-drift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(-2%, 1%, 0) scale(1.03);
  }
}

@keyframes scanline {
  from {
    background-position: 0 0, 0 0, 0 0, 0 0;
  }
  to {
    background-position: 0 0, 0 0, 0 0, 0 120px;
  }
}

@keyframes nav-flow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes sheen {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.content-wrapper {
  animation: rise-in 0.6s ease-out;
}

/* Navbar improvements */
.main-header {
  background: linear-gradient(180deg, rgba(6,10,14,0.65), rgba(8,12,18,0.55));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 8px 30px rgba(2,6,12,0.6);
  padding: 0.45rem 1rem;
  border-bottom: 1px solid rgba(26,173,255,0.06);
}

.main-header .navbar-brand .brand-image {
  width: 56px;
  height: 56px;
  object-fit: cover;
  box-shadow: var(--rh-glow-soft);
}

.main-header .nav-link {
  color: var(--rh-text-muted);
  padding: .45rem .7rem;
  border-radius: 8px;
}

.main-header .nav-link:hover,
.main-header .nav-link:focus {
  color: var(--rh-text);
  background: rgba(26,173,255,0.06);
  box-shadow: inset 0 0 0 1px rgba(26,173,255,0.03);
}

.main-header .navbar-nav .dropdown-menu {
  background: rgba(10,17,28,0.96);
  border: 1px solid rgba(26,173,255,0.12);
}

/* Alerts: constrain width and center */
.content-wrapper .alert {
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
  border-radius: var(--rh-radius-md);
  box-shadow: var(--rh-elev-1);
}

/* Sidebar: make nav headers slightly subtler */
.nav-header {
  color: var(--rh-text-muted);
  font-size: .85rem;
  padding: .6rem .75rem;
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* Products page fixes: tables and product-list responsiveness */
.table,
.dataTables_wrapper table {
  width: 100% !important;
  table-layout: auto !important;
  word-break: break-word;
}

.table td,
.table th {
  white-space: nowrap;
}

/* Allow long strings to wrap and prevent horizontal overflow */
.table td .text-wrap,
.product-description {
  white-space: normal !important;
  overflow-wrap: anywhere !important;
}

.product-list-in-card>.item .product-info {
  margin-left: 70px;
}

/* DataTables responsive helpers */
.dataTables_wrapper .dataTables_scrollBody {
  overflow-x: auto;
}

.card,
.info-box,
.small-box {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover,
.info-box:hover,
.small-box:hover {
  transform: translateY(-2px);
  box-shadow: var(--rh-elev-3), 0 0 40px rgba(26, 173, 255, 0.18);
}
