﻿@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300;
  src: url(s/inter/v18/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuOKfAZ9hjQ.ttf) format('truetype');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  src: url(s/inter/v18/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuLyfAZ9hjQ.ttf) format('truetype');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  src: url(s/inter/v18/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuI6fAZ9hjQ.ttf) format('truetype');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  src: url(s/inter/v18/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuGKYAZ9hjQ.ttf) format('truetype');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  src: url(s/inter/v18/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuFuYAZ9hjQ.ttf) format('truetype');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 800;
  src: url(s/inter/v18/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuDyYAZ9hjQ.ttf) format('truetype');
}

:root {
  --color-bg-primary: #050913;
  --color-bg-secondary: #0b1220;
  --color-surface: #111c2f;
  --color-surface-alt: #1b2844;
  --color-border: rgba(255, 255, 255, 0.08);
  --color-border-strong: rgba(255, 255, 255, 0.15);
  --color-text-primary: #f6f8ff;
  --color-text-muted: rgba(255, 255, 255, 0.65);
  --color-accent: #4f46e5;
  --color-accent-soft: rgba(79, 70, 229, 0.15);
  --color-success: #22d3ee;
  --color-danger: #f87171;
  --radius-lg: 30px;
  --radius-md: 20px;
  --radius-sm: 12px;
  --shadow-lg: 0 30px 60px rgba(5, 9, 19, 0.65);
  --shadow-md: 0 25px 45px rgba(5, 9, 19, 0.45);
  --shadow-soft: 0 10px 25px rgba(0, 0, 0, 0.35);
  --sidenav-width: 260px;
  font-size: 16px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  font-family: 'Inter', 'Poppins', 'Helvetica Neue', Arial, sans-serif;
  background: radial-gradient(circle at 12% 20%, rgba(79, 70, 229, 0.35), transparent 40%),
    radial-gradient(circle at 80% 0%, rgba(34, 211, 238, 0.2), transparent 45%),
    linear-gradient(160deg, #01030a 0%, #050913 100%);
  color: var(--color-text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 1.5rem;
  padding: 1.5rem;
}

body.g-sidenav-show .main-content,
body.g-sidenav-pinned .main-content {
  margin-left: calc(var(--sidenav-width) + 2rem);
  transition: margin-left 0.3s ease;
}

.main-content {
  min-height: 100vh;
  background: transparent;
  border-radius: var(--radius-lg);
  padding: 2rem 2.5rem 4rem;
  position: relative;
}

.main-content::before,
.main-content::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  z-index: -1;
}

.main-content::before {
  background: radial-gradient(circle at 20% 20%, rgba(99, 102, 241, 0.18), transparent 55%);
  opacity: 0.6;
}

.main-content::after {
  background: rgba(5, 9, 19, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.02);
  box-shadow: var(--shadow-lg);
}

.profile-hero {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.35), rgba(34, 211, 238, 0.25));
  padding: 2rem;
  min-height: 220px;
  position: relative;
  isolation: isolate;
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.profile-hero__glow,
.profile-hero__glimmer {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  z-index: -1;
}

.profile-hero__glow {
  background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.25), transparent 60%);
  opacity: 0.6;
}

.profile-hero__glimmer {
  background: radial-gradient(circle at 85% 15%, rgba(34, 211, 238, 0.35), transparent 55%);
  opacity: 0.6;
}

.profile-hero__content {
  position: relative;
  z-index: 1;
}

.profile-hero__identity {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.profile-hero__stats .profile-stat-card {
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 20px 40px rgba(5, 9, 19, 0.35);
  min-height: 110px;
}

.profile-avatar img {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.profile-avatar--lg img {
  width: 120px;
  height: 120px;
  border-width: 4px;
}

.profile-alert {
  border-radius: var(--radius-md);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.profile-form label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  font-weight: 600;
}

.profile-form textarea {
  min-height: 88px;
}

.avatar-upload {
  border: 1px dashed rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-md);
  padding: 1rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
  display: block;
}

.avatar-upload strong {
  display: block;
  color: var(--color-text-primary);
  font-size: 0.95rem;
}

.avatar-upload span {
  color: var(--color-text-muted);
  font-size: 0.85rem;
}

.avatar-upload:hover {
  border-color: var(--color-accent);
  background: rgba(255, 255, 255, 0.05);
}

.avatar-upload input {
  display: none;
}

.profile-summary-card .btn-outline-light {
  color: var(--color-text-primary);
  border-color: rgba(255, 255, 255, 0.25);
}

.profile-summary-card .btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
}

.sidenav,
.navbar,
.card,
.dropdown-menu,
.modal-content,
.glass-panel,
.status-card,
.info-tile,
.floating-panel {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.sidenav,
#sidenav-main,
#sidenav-main.bg-white {
  background: rgba(5, 9, 19, 0.92) !important;
  backdrop-filter: blur(18px);
  width: var(--sidenav-width);
  transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
  border-right: 1px solid var(--color-border);
  color: var(--color-text-primary);
}

.sidenav .card,
#sidenav-main .card {
  background: rgba(11, 18, 32, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-md);
}

.sidenav .nav-link,
.sidenav .nav-link-text,
.sidenav .navbar-brand span {
  color: var(--color-text-muted) !important;
}

body:not(.g-sidenav-pinned) #sidenav-main {
  transform: translateX(-110%);
}

body.g-sidenav-pinned #sidenav-main {
  transform: translateX(0);
}

@media (min-width: 1200px) {
  body:not(.g-sidenav-pinned) #sidenav-main {
    transform: translateX(0);
  }
}

.sidenav .nav-link,
.navbar .nav-link,
.navbar-brand,
.sidenav .nav-link-text {
  color: var(--color-text-muted) !important;
}

.sidenav .nav-link.active,
.sidenav .nav-link:hover,
.navbar .nav-link:hover,
.navbar .nav-link:focus,
.sidenav .nav-link.active .nav-link-text,
.sidenav .nav-link.active span,
.sidenav .nav-link.active svg path {
  color: var(--color-bg-primary) !important;
  fill: var(--color-bg-primary) !important;
}

.sidenav .nav-link.active {
  background: linear-gradient(120deg, #6366f1, #22d3ee);
  color: var(--color-bg-primary) !important;
  border-radius: 999px;
  box-shadow: 0 15px 25px rgba(99, 102, 241, 0.25);
}

.sidenav .nav-link svg path {
  transition: fill 0.2s ease;
}

.sidenav .nav-link:hover,
.sidenav .nav-link:focus {
  background: rgba(79, 70, 229, 0.15);
  color: var(--color-text-primary) !important;
  border-radius: 999px;
}

/* Sidenav Close/Cancel Button */
#iconSidenav,
.sidenav #iconSidenav,
.sidenav .fa-times.cursor-pointer,
.sidenav .fas.fa-times {
  color: rgba(255, 255, 255, 0.95) !important;
  opacity: 1 !important;
  transition: all 0.2s ease;
  z-index: 10;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 6px;
  padding: 0.5rem !important;
  font-size: 1.1rem !important;
  width: 36px;
  height: 36px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

#iconSidenav:hover,
.sidenav #iconSidenav:hover,
.sidenav .fa-times.cursor-pointer:hover,
.sidenav .fas.fa-times:hover {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.2) !important;
  border-color: rgba(255, 255, 255, 0.4) !important;
  transform: scale(1.05);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

#iconSidenav:active,
.sidenav #iconSidenav:active,
.sidenav .fa-times.cursor-pointer:active {
  transform: scale(0.95);
}

/* Sidenav Section Headers (Account pages, etc.) */
.sidenav h6.text-uppercase,
.sidenav .text-uppercase.text-xs,
.sidenav h6.ps-4 {
  color: rgba(255, 255, 255, 0.6) !important;
  opacity: 1 !important;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.sidenav .opacity-6 {
  opacity: 1 !important;
  color: rgba(255, 255, 255, 0.6) !important;
}

/* Override text-secondary in sidenav */
.sidenav .text-secondary {
  color: rgba(255, 255, 255, 0.7) !important;
}

.sidenav .opacity-5 {
  opacity: 1 !important;
  color: rgba(255, 255, 255, 0.5) !important;
}

/* Ensure all sidenav text is visible */
.sidenav-header,
.sidenav-header * {
  color: var(--color-text-primary) !important;
}

.sidenav .sidenav-header .fa-times {
  color: rgba(255, 255, 255, 0.8) !important;
}

.navbar {
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  background: rgba(17, 28, 47, 0.85);
  backdrop-filter: blur(12px);
  color: var(--color-text-primary);
  width: 100%;
  max-width: 100%;
}

.navbar-main {
  background: linear-gradient(120deg, rgba(19, 29, 54, 0.9), rgba(4, 7, 16, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 25px 40px rgba(4, 7, 16, 0.65);
  padding: 0.85rem 1.25rem;
}

.navbar-main .container-fluid {
  padding-inline: 0.5rem;
}

.navbar-main .breadcrumb .breadcrumb-item,
.navbar-main .breadcrumb .breadcrumb-item a {
  color: rgba(255, 255, 255, 0.85) !important;
}

.navbar-main .breadcrumb .breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255, 255, 255, 0.4);
}

.navbar-main h6,
.navbar-main .navbar-brand,
.navbar-main .nav-link,
.navbar-main .btn,
.navbar-main .fa,
.navbar-main span,
.navbar-main .opacity-5 {
  color: var(--color-text-primary) !important;
}

.navbar-main .btn-outline-primary {
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--color-text-primary);
}

.navbar-main .btn-outline-primary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.6);
}

.navbar-main .nav-link .fa,
.navbar-main .nav-link i {
  color: inherit;
}

.navbar-main .nav-link:hover,
.navbar-main .nav-link:focus {
  color: #fff !important;
  opacity: 0.9;
}

.navbar .nav-link,
.navbar .dropdown-toggle,
.navbar .btn,
.navbar .navbar-brand,
.navbar .nav-link .fa,
.navbar .nav-link span {
  color: var(--color-text-primary) !important;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus {
  color: #fff !important;
}

.card {
  background: linear-gradient(145deg, var(--color-surface), var(--color-surface-alt));
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.card-stack {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.info-tile {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0));
}

.info-tile .label {
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: var(--color-text-muted);
}

.info-tile .value {
  font-size: 2rem;
  font-weight: 700;
}

.info-tile .trend {
  font-size: 0.85rem;
  color: var(--color-success);
}

.floating-panel {
  padding: 1.75rem;
  margin-bottom: 1.5rem;
  background: rgba(7, 11, 22, 0.9);
}

.page-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1.5rem;
}

.page-grid .span-8 {
  grid-column: span 8;
}

.page-grid .span-4 {
  grid-column: span 4;
}

.section {
  margin-bottom: 2rem;
}

.card-header {
  border-bottom: 1px solid var(--color-border);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.card h6,
.card h5,
.card h4,
.card h3 {
  color: var(--color-text-primary);
}

.btn,
.btn:focus,
.btn:active {
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-soft);
}

.btn-primary,
.btn.bg-gradient-info,
.btn-outline-primary:hover {
  background: linear-gradient(120deg, #6366f1, #8b5cf6);
  border-color: transparent;
  color: #fff;
}

.btn-outline-primary,
.btn-outline-success,
.btn-outline-danger {
  border-color: var(--color-border-strong);
  color: var(--color-text-primary);
}

.btn-outline-success:hover {
  background: rgba(34, 211, 238, 0.15);
  color: var(--color-success);
}

.btn-outline-danger:hover {
  background: rgba(248, 113, 113, 0.15);
  color: var(--color-danger);
}

.table {
  color: var(--color-text-muted);
  margin-bottom: 0;
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
}

.table thead th {
  border-bottom: 1px solid var(--color-border);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  text-transform: uppercase;
}

.table tbody tr {
  transition: transform 0.2s ease, background 0.2s ease;
}

.table tbody tr:hover {
  background-color: rgba(79, 70, 229, 0.08);
  transform: translateX(4px);
}

.table tbody tr:not(:last-child) td {
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.table td,
.table th {
  border-top: 1px solid var(--color-border);
  vertical-align: middle;
}

.table-responsive {
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: rgba(10, 13, 24, 0.35);
  backdrop-filter: blur(6px);
}

.form-control,
.form-select,
input,
select,
textarea {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid var(--color-border) !important;
  border-radius: var(--radius-sm);
  color: var(--color-text-primary) !important;
  padding: 0.85rem 1rem;
}

.form-control:focus,
.form-select:focus,
input:focus,
select:focus,
textarea:focus {
  border-color: var(--color-accent) !important;
  box-shadow: 0 0 0 1px var(--color-accent-soft);
  background: rgba(255, 255, 255, 0.08) !important;
}

.modal-content {
  background: linear-gradient(160deg, var(--color-surface), #070b16);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  color: var(--color-text-primary);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.modal {
  z-index: 1100;
  position: fixed;
}

.modal-backdrop {
  z-index: 1090;
}

.modal-header,
.modal-footer {
  border-color: rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.02);
  padding: 1.5rem 1.75rem;
}

.modal-title {
  font-weight: 600;
  color: var(--color-text-primary);
}

.modal-body {
  padding: 1.75rem;
  background: rgba(7, 11, 22, 0.85);
}

.modal-backdrop.show {
  opacity: 0.75;
  background: rgba(2, 6, 15, 0.85);
  backdrop-filter: blur(6px);
}

.breadcrumb {
  background: transparent;
}

.breadcrumb .breadcrumb-item a,
.breadcrumb .breadcrumb-item {
  color: var(--color-text-muted);
}

.breadcrumb .breadcrumb-item.active {
  color: var(--color-text-primary);
}

footer.footer {
  border-top: 1px solid var(--color-border);
  background: transparent;
  color: var(--color-text-muted);
}

.status-card {
  padding: 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: rgba(255, 255, 255, 0.02);
}

.status-card .value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-text-primary);
}

.status-card .label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
}

.glass-panel {
  background: rgba(17, 28, 47, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(10px);
}

.badge {
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.badge.bg-success {
  background: rgba(34, 211, 238, 0.15) !important;
  color: var(--color-success);
}

.badge.bg-danger {
  background: rgba(248, 113, 113, 0.15) !important;
  color: var(--color-danger);
}

.text-muted,
.text-secondary {
  color: var(--color-text-muted) !important;
}

.section-title {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-text-primary);
}

.shadow-glow {
  box-shadow: 0 15px 35px rgba(79, 70, 229, 0.4);
}

.table-actions a {
  min-width: 96px;
}

.table td small {
  color: var(--color-text-muted);
}

.nav-footer a {
  color: var(--color-text-muted);
}

.nav-footer a:hover {
  color: var(--color-text-primary);
}

.g-sidenav-show .sidenav {
  box-shadow: var(--shadow-lg);
}

.sidenav .navbar-brand span {
  color: var(--color-text-primary);
}

.sidenav-footer .btn {
  width: 100%;
}

.card .dropdown-menu {
  background-color: var(--color-surface-alt);
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
}

.dropdown-menu .dropdown-item {
  color: var(--color-text-muted);
}

.dropdown-menu .dropdown-item:hover {
  color: var(--color-text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.table th,
.table td {
  padding: 1rem 1.25rem;
}

.table th:first-child,
.table td:first-child {
  padding-left: 1.5rem;
}

.table th:last-child,
.table td:last-child {
  padding-right: 1.5rem;
}

.table .align-middle {
  font-weight: 500;
}

.timeline .timeline-step {
  border-color: var(--color-border);
  background: rgba(255, 255, 255, 0.05);
}

.timeline .timeline-content small {
  color: var(--color-text-muted);
}

.timeline .timeline-content .text-muted {
  color: var(--color-text-muted) !important;
}

.timeline::before {
  background: var(--color-border);
}

.text-gradient {
  background: linear-gradient(90deg, #22d3ee, #6366f1);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

@media (max-width: 1400px) {
  .main-content {
    padding: 1.75rem;
  }

  .navbar {
    margin: 0 0.5rem;
  }
}

@media (max-width: 1200px) {
  body.g-sidenav-show .main-content,
  body.g-sidenav-pinned .main-content {
    margin-left: 0 !important;
  }

  .navbar {
    border-radius: var(--radius-md);
  }

  .card {
    margin-bottom: 1.5rem;
  }

  .table-responsive {
    margin-bottom: 1.5rem;
  }

  .page-grid {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }

  .page-grid .span-8,
  .page-grid .span-4 {
    grid-column: span 1;
  }
}

@media (max-width: 992px) {
  body:not(.g-sidenav-pinned) #sidenav-main {
    transform: translateX(-110%);
  }

  body.g-sidenav-pinned #sidenav-main {
    transform: translateX(0);
  }

  #sidenav-main {
    background: rgba(11, 18, 32, 0.98);
  }

  .main-content {
    margin-left: 0 !important;
    border-radius: 0;
    padding: 1.5rem;
  }

  .table-responsive {
    border-radius: var(--radius-sm);
  }

  .app-shell {
    grid-template-columns: 1fr;
    padding: 1rem;
  }
}

@media (max-width: 768px) {
  .navbar-main {
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    margin: 0 0.5rem;
  }

  .navbar-main .container-fluid {
    padding-inline: 0;
  }

  .navbar-main .breadcrumb {
    flex-wrap: wrap;
    gap: 0.25rem 0.5rem;
  }

  .navbar-main .breadcrumb .breadcrumb-item,
  .navbar-main .breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    font-size: 0.85rem;
  }

  .navbar-main .navbar-nav {
    gap: 0.5rem;
  }

  .card {
    border-radius: var(--radius-md);
  }

  .table {
    min-width: 640px;
  }

  .table-responsive {
    overflow-x: auto;
  }

  .navbar .btn,
  .navbar .nav-link {
    font-size: 0.85rem;
  }

  .footer .nav-link {
    padding: 0.25rem 0.75rem;
  }

  .card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .card-header .text-end {
    width: 100%;
    text-align: left !important;
  }

  .info-tile {
    padding: 1.25rem;
  }
}

@media (max-width: 640px) {
  .navbar-main h6,
  .navbar-main .breadcrumb .breadcrumb-item,
  .navbar-main .breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    font-size: clamp(0.8rem, 2.5vw, 1rem);
  }

  .navbar-main .navbar-nav {
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.5rem;
  }

  .navbar-main .nav-item {
    flex: 1 1 45%;
  }

  .navbar-main .btn,
  .navbar-main .nav-link {
    font-size: clamp(0.75rem, 2.4vw, 0.9rem);
    padding: 0.45rem 0.75rem;
    width: 100%;
    justify-content: center;
    white-space: normal;
  }

  .navbar-main .btn-outline-primary {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .navbar-main .btn-outline-primary span,
  .navbar-main .btn-outline-primary small {
    display: inline-block;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

@media (max-width: 576px) {
  body {
    font-size: 0.95rem;
  }

  .navbar-main {
    padding: 0.65rem 0.75rem;
  }

  .navbar-main .navbar-nav {
    flex-direction: column;
    align-items: stretch;
  }

  .navbar-main .btn-outline-primary {
    max-width: 100%;
  }

  .navbar-main .btn-outline-primary span,
  .navbar-main .btn-outline-primary small {
    max-width: 100%;
  }

  .navbar-main .btn,
  .navbar-main .nav-link {
    width: 100%;
    text-align: center;
  }

  .card-header,
  .card-body {
    padding: 1.25rem;
  }

  .navbar {
    padding: 0.85rem 1rem;
  }

  .btn {
    width: 100%;
    margin-bottom: 0.5rem;
  }

  .page-grid {
    gap: 1rem;
  }
}

/* Pagination Styles */
.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  width: 100%;
}

/* Pagination container - scoped to pagination only */
/* Only apply scroll styles to pagination itself, not all flex containers */

.pagination .page-item {
  margin: 0;
}

.pagination .page-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0.5rem 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.875rem;
  transition: all 0.2s ease;
  cursor: pointer;
}

.pagination .page-link:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.9);
  transform: translateY(-1px);
}

.pagination .page-item.active .page-link {
  background: linear-gradient(120deg, #6366f1, #8b5cf6);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.pagination .page-item.active .page-link:hover {
  background: linear-gradient(120deg, #4f46e5, #7c3aed);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(99, 102, 241, 0.4);
}

.pagination .page-item.disabled .page-link,
.pagination .page-link[href="javascript:;"] {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.02);
}

/* Improve focus states for accessibility */
.pagination .page-link:focus {
  outline: 2px solid rgba(99, 102, 241, 0.5);
  outline-offset: 2px;
  z-index: 1;
  position: relative;
}

.pagination .page-link:focus-visible {
  outline: 2px solid #6366f1;
  outline-offset: 2px;
}

.pagination .page-link i,
.pagination .page-link .ni {
  font-size: 0.875rem;
}

/* Pagination Info Variant */
.pagination-info .page-link {
  background: rgba(34, 211, 238, 0.1);
  border-color: rgba(34, 211, 238, 0.2);
  color: rgba(34, 211, 238, 0.9);
}

.pagination-info .page-link:hover {
  background: rgba(34, 211, 238, 0.2);
  border-color: rgba(34, 211, 238, 0.4);
  color: #22d3ee;
}

.pagination-info .page-item.active .page-link {
  background: linear-gradient(120deg, #22d3ee, #06b6d4);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 12px rgba(34, 211, 238, 0.3);
}

/* Responsive Pagination */
@media (max-width: 1200px) {
  .pagination {
    gap: 0.5rem;
  }

  .pagination .page-link {
    min-width: 38px;
    height: 38px;
    padding: 0.45rem 0.7rem;
  }
}

@media (max-width: 992px) {
  .pagination {
    gap: 0.4rem;
    margin: 1.25rem 0;
  }

  .pagination .page-link {
    min-width: 36px;
    height: 36px;
    padding: 0.4rem 0.65rem;
    font-size: 0.85rem;
  }
}

@media (max-width: 768px) {
  .pagination {
    gap: 0.35rem;
    margin: 1.25rem 0;
    flex-wrap: wrap;
  }

  .pagination .page-link {
    min-width: 34px;
    height: 34px;
    padding: 0.4rem 0.6rem;
    font-size: 0.8125rem;
  }

  /* On tablets, simplify pagination display */
  .pagination {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.5rem;
  }

  /* Allow horizontal scrolling on tablets if needed */
  .pagination .page-item {
    flex-shrink: 0;
  }
}

@media (max-width: 576px) {
  .pagination {
    gap: 0.3rem;
    margin: 1rem 0;
    justify-content: center;
  }

  .pagination .page-link {
    min-width: 32px;
    height: 32px;
    padding: 0.35rem 0.5rem;
    font-size: 0.75rem;
  }

  .pagination .page-link i,
  .pagination .page-link .ni {
    font-size: 0.75rem;
  }

  /* On mobile, show only prev, next, and active page */
  .pagination {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    justify-content: flex-start;
    padding-bottom: 0.5rem;
  }

  /* Hide page numbers except active and nav buttons */
  .pagination .page-item:not(:first-child):not(:last-child):not(.active) {
    display: none;
  }

  /* Always show active page and nav buttons */
  .pagination .page-item.active,
  .pagination .page-item:first-child,
  .pagination .page-item:last-child {
    display: flex !important;
    flex-shrink: 0;
  }
}

@media (max-width: 480px) {
  .pagination {
    gap: 0.25rem;
    margin: 0.875rem 0;
  }

  .pagination .page-link {
    min-width: 30px;
    height: 30px;
    padding: 0.3rem 0.45rem;
    font-size: 0.7rem;
  }

  .pagination .page-link i,
  .pagination .page-link .ni {
    font-size: 0.7rem;
  }
}

@media (max-width: 400px) {
  .pagination {
    gap: 0.2rem;
    margin: 0.75rem 0;
  }

  .pagination .page-link {
    min-width: 28px;
    height: 28px;
    padding: 0.25rem 0.4rem;
    font-size: 0.65rem;
  }

  .pagination .page-link i,
  .pagination .page-link .ni {
    font-size: 0.65rem;
  }

  /* On very small screens, make prev/next more compact */
  .pagination .page-item:first-child .page-link,
  .pagination .page-item:last-child .page-link {
    min-width: 32px;
    padding: 0.25rem 0.35rem;
  }
}

@media (max-width: 360px) {
  .pagination {
    gap: 0.15rem;
  }

  .pagination .page-link {
    min-width: 26px;
    height: 26px;
    padding: 0.2rem 0.35rem;
    font-size: 0.625rem;
  }

  .pagination .page-link i,
  .pagination .page-link .ni {
    font-size: 0.625rem;
  }
}

/* Touch-friendly pagination for mobile devices */
@media (hover: none) and (pointer: coarse) {
  .pagination .page-link {
    min-height: 44px;
    min-width: 44px;
  }

  @media (max-width: 576px) {
    .pagination .page-link {
      min-height: 40px;
      min-width: 40px;
    }
  }

  @media (max-width: 400px) {
    .pagination .page-link {
      min-height: 36px;
      min-width: 36px;
    }
  }
}

/* Print styles */
@media print {
  .pagination {
    display: none;
  }
}

/* Auth Pages Styling */
body:not(.g-sidenav-show) {
  background: radial-gradient(circle at 12% 20%, rgba(79, 70, 229, 0.35), transparent 40%),
    radial-gradient(circle at 80% 0%, rgba(34, 211, 238, 0.2), transparent 45%),
    linear-gradient(160deg, #01030a 0%, #050913 100%);
}

/* Auth Card Styling */
.card.card-plain,
.card.z-index-0 {
  background: rgba(17, 28, 47, 0.85) !important;
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
}

.card-header.bg-transparent h3,
.card-header h3,
.card-header h5 {
  color: rgba(255, 255, 255, 0.95) !important;
}

.card-header.bg-transparent p,
.card-header p {
  color: rgba(255, 255, 255, 0.7) !important;
}

.card-body label {
  color: rgba(255, 255, 255, 0.9) !important;
  font-weight: 500;
  margin-bottom: 0.5rem;
  display: block;
}

/* Form Controls in Auth Pages */
.card .form-control {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: rgba(255, 255, 255, 0.95) !important;
  padding: 0.75rem 1rem;
  border-radius: 8px;
}

.card .form-control:focus {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: #6366f1 !important;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1) !important;
  color: #fff !important;
}

.card .form-control::placeholder {
  color: rgba(255, 255, 255, 0.4) !important;
}

/* Remember Me Switch - Enhanced */
.form-check.form-switch {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1rem 0;
}

.form-check-input[type="checkbox"] {
  width: 48px !important;
  height: 24px !important;
  background-color: rgba(255, 255, 255, 0.2) !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  border-radius: 24px !important;
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.form-check-input[type="checkbox"]:checked {
  background: linear-gradient(120deg, #6366f1, #8b5cf6) !important;
  border-color: #6366f1 !important;
}

.form-check-input[type="checkbox"]::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  top: 2px;
  left: 2px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.form-check-input[type="checkbox"]:checked::before {
  transform: translateX(24px);
  box-shadow: 0 2px 6px rgba(99, 102, 241, 0.4);
}

.form-check-input[type="checkbox"]:hover {
  border-color: rgba(255, 255, 255, 0.5) !important;
}

.form-check-input[type="checkbox"]:checked:hover {
  border-color: #8b5cf6 !important;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
}

.form-check-label {
  color: rgba(255, 255, 255, 0.9) !important;
  font-weight: 500;
  cursor: pointer;
  user-select: none;
  font-size: 0.9rem;
}

.form-check-label:hover {
  color: rgba(255, 255, 255, 1) !important;
}

/* Regular Checkbox (Terms and Conditions) */
.form-check:not(.form-switch) .form-check-input[type="checkbox"] {
  width: 20px !important;
  height: 20px !important;
  border-radius: 4px !important;
  background-color: rgba(255, 255, 255, 0.1) !important;
  border: 2px solid rgba(255, 255, 255, 0.3) !important;
  cursor: pointer;
  transition: all 0.2s ease;
}

.form-check:not(.form-switch) .form-check-input[type="checkbox"]:checked {
  background: linear-gradient(120deg, #6366f1, #8b5cf6) !important;
  border-color: #6366f1 !important;
  /* background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M6 10l3 3l6-6'/%3e%3c/svg%3e") !important; */
  background-size: 100% 100% !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}

.form-check:not(.form-switch) .form-check-input[type="checkbox"]:hover {
  border-color: rgba(255, 255, 255, 0.5) !important;
}

.form-check:not(.form-switch) .form-check-input[type="checkbox"]:checked:hover {
  border-color: #8b5cf6 !important;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

/* Auth Page Text Colors */
.card-footer p,
.card-body p {
  color: rgba(255, 255, 255, 0.7) !important;
}

.card-footer a,
.card-body a {
  color: #22d3ee !important;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.card-footer a:hover,
.card-body a:hover {
  color: #06b6d4 !important;
  text-decoration: underline;
}

/* Navbar in Auth Pages */
.navbar.blur .navbar-brand {
  color: rgba(255, 255, 255, 0.95) !important;
}

.navbar.blur .nav-link {
  color: rgba(255, 255, 255, 0.8) !important;
}

.navbar.blur .nav-link:hover,
.navbar.blur .nav-link.active {
  color: rgba(255, 255, 255, 1) !important;
}

.navbar.blur .nav-link i {
  color: rgba(255, 255, 255, 0.7) !important;
}

/* Footer in Auth Pages */
.footer a {
  color: rgba(255, 255, 255, 0.7) !important;
}

.footer a:hover {
  color: rgba(255, 255, 255, 0.9) !important;
}

.footer p {
  color: rgba(255, 255, 255, 0.6) !important;
}

.footer .fab,
.footer .fa {
  color: rgba(255, 255, 255, 0.7) !important;
  transition: all 0.2s ease;
}

.footer .fab:hover,
.footer .fa:hover {
  color: rgba(255, 255, 255, 1) !important;
  transform: translateY(-2px);
}