/* ===================================
   CSS Custom Properties
   =================================== */

:root {
  /* Primary Colors */
  --primary-purple: #9c27b0;
  --primary-purple-hover: #7b1fa2;
  --primary-purple-light: #ba68c8;

  /* Text Colors */
  --text-primary: #212121;
  --text-secondary: #636363;
  --text-body: #333;

  /* Border Colors */
  --border-color: rgba(0, 0, 0, 0.23);
  --border-color-hover: rgba(0, 0, 0, 0.87);

  /* Status Colors */
  --error-color: #d32f2f;
  --success-color: #2e7d32;
  --info-color: #1976d2;

  /* Background Colors */
  --background-white: #ffffff;
  --background-light: #f8f9fa;
  --background-overlay-light: rgba(0, 0, 0, 0.15);
  --background-overlay-dark: rgba(0, 0, 0, 0.65);
  --glass-background: rgba(255, 255, 255, 0.98);
  --glass-border: rgba(255, 255, 255, 0.3);

  /* Spacing */
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 12px;
  --spacing-lg: 16px;
  --spacing-xl: 24px;
  --spacing-2xl: 32px;

  /* Border Radius */
  --border-radius: 2px;
  --border-radius-lg: 4px;
  --border-radius-xl: 4px;

  /* Font Sizes */
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.5rem;
  --font-size-xl: 2.125rem;

  /* Shadows */
  --shadow-sm: 0 0 24px rgba(0, 0, 0, 0.12);
  --shadow-md: 0 12px 48px rgba(0, 0, 0, 0.35);
}

/* ===================================
   Bootstrap Overrides
   =================================== */
:root {
  --bs-primary: #9c27b0;
  --bs-primary-rgb: 156, 39, 176;
}


html[data-bs-theme="dark"] {
    /* Primary Colors - Lighter for dark mode */
    --primary-purple: #ba68c8;
    --primary-purple-hover: #ce93d8;
    --primary-purple-light: #e1bee7;
    /* Text Colors */
    --text-primary: #f5f5f5;
    --text-secondary: #cccccc;
    --text-body: #ffffff;
    /* Border Colors */
    --border-color: rgba(255, 255, 255, 0.23);
    --border-color-hover: rgba(255, 255, 255, 0.87);
    /* Status Colors */
    --error-color: #ef5350;
    --success-color: #66bb6a;
    --info-color: #42a5f5;
    /* Background Colors */
    --background-white: #1a1a1a;
    --background-light: #2a2a2a;
    --background-dark: #1a1a1a;
    --background-darker: #121212;
    --background-overlay-light: rgba(255, 255, 255, 0.08);
    --background-overlay-dark: rgba(255, 255, 255, 0.12);
    --glass-background: rgba(26, 26, 26, 0.95);
    --glass-border: rgba(255, 255, 255, 0.1);
    /* Shadows */
    --shadow-sm: 0 0 24px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 12px 48px rgba(0, 0, 0, 0.8);

    --bs-primary: #ba68c8;
    --bs-primary-rgb: 186, 104, 200;
    --bs-body-bg: var(--background-white);
    --bs-body-color: var(--text-body);
}


.btn-primary {
  --bs-btn-bg: var(--primary-purple);
  --bs-btn-border-color: var(--primary-purple);
  --bs-btn-hover-bg: var(--primary-purple-hover);
  --bs-btn-hover-border-color: var(--primary-purple-hover);
  --bs-btn-active-bg: var(--primary-purple-hover);
  --bs-btn-active-border-color: var(--primary-purple-hover);
}


.form-check-input:checked {
  background-color: var(--primary-purple);
  border-color: var(--primary-purple);
}

.form-check-input:focus {
  border-color: var(--primary-purple);
  box-shadow: 0 0 0 0.125rem rgba(156, 39, 176, 0.25);
}

/* ===================================
   Logo SVG Import - Blue Logo for Light Mode
   =================================== */
.auth-logo-svg {
    width: 180px;
    height: 60px;
    background: url('../imgs/auth/sentinel-logo-blue.svg') no-repeat center;
    background-size: contain;
    display: inline-block;
    transition: opacity 0.3s ease;
}

html[data-bs-theme="dark"] .auth-logo-svg {
    background: url('../imgs/auth/sentinel-logo-white.svg') no-repeat center;
    background-size: contain;
}

/* ===================================
   Base Styles
   =================================== */
body {
  font-family:
    'Manrope',
    'Nunito Sans',
    'Open Sans',
    system-ui,
    -apple-system,
    sans-serif !important;
  line-height: 1.6;
  color: var(--text-body);
}

.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.loading-gif {
    width: 150px;
    height: 150px;
}


/* ===================================
    Razor Forms list messages
    ================================== */
.invalid-feedback .validation-summary-errors ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.invalid-feedback .validation-summary-errors li {
    margin-left: 0;
}




/* Auth Layout */
.auth-layout {
  min-height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  position: relative;
  overflow: hidden;
}

.form-panel {
  width: 55%;
  min-height: 100vh;
  background-color: var(--background-white);
  display: flex;
  flex-direction: column;
  z-index: 2;
  position: relative;
  box-shadow: var(--shadow-sm);
}

.background-panel {
    flex: 1;
    min-height: 100vh;
    background-image: url('../imgs/auth/login-background-2.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.background-panel::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--background-overlay-light);
  z-index: 1;
}

/* ===================================
   Theme & Language Controls
   =================================== */
.form-panel .position-absolute {
    background: rgba(255, 255, 255, 0.95);
    /*backdrop-filter: blur(10px);*/
    border-radius: var(--border-radius);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.theme-icon-sun,
.theme-icon-moon {
  transition: opacity 0.3s ease;
}

#themeToggle {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

#themeToggle:hover .theme-icon-sun,
#themeToggle:hover .theme-icon-moon {
  opacity: 0.7;
}

.dropdown-toggle {
  transition: all 0.3s ease;
}

.dropdown-menu {
  border-radius: var(--border-radius);
}

.dropdown-item {
  transition: background-color 0.2s ease;
}

.dropdown-item:hover {
  background-color: var(--background-light);
  color: var(--primary-purple);
}

.d-flex.gap-2 > * + * {
  margin-left: 0;
}

/* ===================================
   Auth Card
   =================================== */
.auth-card {
  background-color: var(--background-white);
  border-radius: var(--border-radius-lg);
  padding: 1rem;
  box-shadow: none;
  border: none;
}

/* ===================================
   Auth Header
   =================================== */
.auth-header {
  margin-bottom: 2rem;
}

.auth-logo {
  height: 80px;
  width: auto;
}

.auth-subtitle {
  font-size: var(--font-size-lg);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--spacing-sm);
}

.auth-description {
  font-size: var(--font-size-base);
  font-weight: 400;
  color: var(--text-secondary);
}

/* ===================================
   Form Controls
   =================================== */
.form-control {
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  padding: 0.875rem 1rem;
  font-size: var(--font-size-base);
  transition: all 0.3s ease;
}

.form-control:focus {
  border-color: var(--primary-purple);
  box-shadow: 0 0 0 0.2rem rgba(156, 39, 176, 0.25);
}

.form-label {
  font-weight: 500;
  color: var(--text-body);
  margin-bottom: 0.5rem;
}

.input-group .form-control:not(:last-child) {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.input-group .btn:not(:first-child) {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  margin-left: -1px;
}

.input-group .form-control {
  z-index: 1;
}

/* ===================================
   Password Toggle
   =================================== */
.password-toggle {
  border-color: var(--border-color);
}

.password-toggle:hover {
  border-color: var(--border-color-hover);
  background-color: var(--background-light);
}

.eye-icon {
  font-style: normal;
  font-size: 1rem;
}

/* ===================================
   Submit Button
   =================================== */
.submit-button {
  padding: 0.875rem 1rem;
  font-weight: 600;
  border-radius: var(--border-radius);
  transition: all 0.3s ease;
}

.submit-button:disabled,
.submit-button.disabled {
  background-color: #e0e0e0 !important;
  color: #9e9e9e !important;
  border-color: #e0e0e0 !important;
  opacity: 1;
  cursor: not-allowed;
  pointer-events: none;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn:disabled,
.btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
  transform: none;
  box-shadow: none;
}

.btn:focus,
.btn:focus-visible {
  outline: 2px solid var(--primary-purple);
  outline-offset: 2px;
}

/* ===================================
   Status Icons & Circles
   =================================== */
.success-icon,
.email-icon,
.security-icon,
.error-icon {
  display: flex;
  justify-content: center;
  align-items: center;
}

.success-circle,
.email-circle,
.security-circle,
.error-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: var(--success-color);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.email-circle {
  background-color: var(--info-color);
}

.security-circle {
  background-color: var(--primary-purple);
}

.error-circle {
  background-color: var(--error-color);
}

.checkmark,
.envelope,
.shield {
  color: white;
  font-size: 2rem;
  font-weight: bold;
}

.email-circle svg,
.security-circle svg,
.error-circle svg {
  color: white;
}

/* ===================================
   Two-Factor Code Input
   =================================== */
.verification-code-input {
  gap: 0.5rem;
}

.code-input {
  width: 50px;
  height: 50px;
  font-size: 1.25rem;
  font-weight: 600;
  border-radius: var(--border-radius);
  text-align: center;
}

.code-input:focus {
  border-color: var(--primary-purple);
  box-shadow: 0 0 0 0.125rem rgba(156, 39, 176, 0.25);
}

/* ===================================
   Validation & Error Messages
   =================================== */
.error-message {
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

/* Alert Overrides */
.alert {
  border-radius: var(--border-radius);
  border: none;
  font-weight: 500;
}

.alert-success {
  background-color: rgba(46, 125, 50, 0.1);
  color: var(--success-color);
}

.alert-info {
  background-color: rgba(25, 118, 210, 0.1);
  color: var(--info-color);
}

.alert-danger {
  background-color: rgba(211, 47, 47, 0.1);
  color: var(--error-color);
}

/* Input Group Override */
.input-group .form-control:not(:last-child) {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.input-group .btn:not(:first-child) {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  border-radius: var(--border-radius);
}

.input-group .form-control {
  border-radius: var(--border-radius);
}

/* Bootstrap Validation Override */
.invalid-feedback {
  display: block !important;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

.invalid-feedback.d-none {
  display: none !important;
}

.form-control.is-invalid {
  border-color: var(--error-color);
  box-shadow: 0 0 0 0.125rem rgba(211, 47, 47, 0.25);
}

/* Focus States for Accessibility */
input:focus,
textarea:focus,
select:focus,
button:focus,
.btn:focus {
  outline: 2px solid var(--primary-purple);
  outline-offset: 2px;
}

/* Theme Toggle and Language Dropdown */
.theme-icon-sun,
.theme-icon-moon {
  transition: opacity 0.2s ease;
}

#themeToggle {
  padding: 0.375rem 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

#themeToggle:hover .theme-icon-sun,
#themeToggle:hover .theme-icon-moon {
  opacity: 0.8;
}

.dropdown-toggle {
  min-width: 50px;
}

.dropdown-menu {
  font-size: 0.875rem;
}

.dropdown-item {
  padding: 0.375rem 0.75rem;
}

.dropdown-item:hover {
  background-color: var(--primary-purple);
  color: white;
}

.d-flex.gap-2 > * + * {
  margin-left: 0.5rem;
}

/* Transparent parent containers for top navigation */
.d-flex.justify-content-end,
.d-flex.gap-2 {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

/* Dropdown and buttons match form background in light mode */
.dropdown-menu {
  background-color: var(--background-white) !important;
  border: 1px solid var(--border-color) !important;
}

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

/* Light mode hover effects - light gray on white background */
.btn-outline-secondary:hover {
  background-color: var(--background-light) !important; /* Light gray #f8f9fa */
  border-color: var(--border-color-hover) !important;
  color: var(--text-primary) !important;
}

.dropdown-item:hover {
  background-color: var(--background-light) !important;
  color: var(--text-primary) !important;
}

.setup-progress {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}

.progress-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--background-light);
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.progress-item:hover {
  background: var(--background-white);
  border-color: var(--primary-purple);
  transform: translateX(4px);
}

.progress-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-purple);
  color: white;
  border-radius: 50%;
  flex-shrink: 0;
}

.progress-text {
  font-weight: 500;
  color: var(--text-primary);
}

/* Responsive Design */
@media (max-width: 991.98px) {
    .auth-layout {
        flex-direction: column;
        background-image: url('../imgs/auth/login-background-2.png');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        background-attachment: scroll;
        position: relative;
    }

  .auth-layout::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--background-overlay-light);
    z-index: 1;
  }

  .form-panel {
    width: 100%;
    background-color: transparent;
    box-shadow: none;
    z-index: 2;
    padding: 6rem 1rem 2rem 1rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
  }

  .form-panel .container-fluid {
    width: 100%;
  }

  .auth-card {
    background-color: var(--glass-background);
    backdrop-filter: blur(20px);
    border-radius: var(--border-radius-xl);
    padding: 2rem 1.5rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--glass-border);
    max-width: 500px;
    margin: 0 auto;
    width: 100%;
  }

  .background-panel {
    display: none !important;
  }

  .form-panel .position-absolute {
    position: fixed;
  }
}

@media (max-width: 767.98px) {
  .form-panel .position-absolute {
    padding: 0.75rem;
  }

  .auth-card {
    padding: 1.5rem 1rem;
  }
}

@media (max-width: 575.98px) {
  .form-panel {
    padding: 5rem 0.75rem 1rem 0.75rem;
  }

  .form-panel .position-absolute {
    top: 0.75rem !important;
    right: 0.75rem !important;
    padding: 0.5rem !important;
  }

  .auth-card {
    padding: 1.5rem 1rem;
    border-radius: var(--border-radius-lg);
    margin: 0;
  }

  .auth-logo {
    height: 60px;
  }

  .auth-subtitle {
    font-size: 1.25rem;
  }

  .auth-description {
    font-size: 0.875rem;
  }

  .form-control {
    padding: 0.75rem 0.875rem;
    font-size: 1rem;
  }

  .form-label {
    font-size: 0.9rem;
  }

  .submit-button {
    padding: 0.875rem;
    font-size: 1rem;
  }

  .code-input {
    width: 36px;
    height: 44px;
    font-size: 1rem;
  }

  .verification-code-input {
    gap: 0.15rem;
  }

  .success-circle,
  .email-circle,
  .security-circle {
    width: 64px;
    height: 64px;
  }

  .checkmark,
  .envelope,
  .shield {
    font-size: 1.75rem;
  }

  .btn-sm {
    font-size: 0.8rem;
    padding: 0.375rem 0.625rem;
  }

  .dropdown-menu {
    font-size: 0.9rem;
  }
}

@media (max-width: 374.98px) {
  .auth-card {
    padding: 1.25rem 0.875rem;
  }

  .auth-logo {
    height: 50px;
  }

  .auth-subtitle {
    font-size: 1.125rem;
  }

  .code-input {
    width: 32px;
    height: 40px;
    font-size: 0.8 rem;
  }

  .form-control {
    padding: 0.625rem 0.75rem;
  }

  .submit-button {
    padding: 0.75rem;
  }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
  .form-panel {
    width: 50%;
  }

  .auth-card {
    padding: 2rem 1.5rem;
  }
}

@media (min-width: 1200px) {
  .form-panel {
    width: 55%;
  }

  .auth-card {
    padding: 2rem;
    max-width: 550px;
  }
}

/* Loading State */
.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Link Styles */
a {
  color: var(--primary-purple);
  text-decoration: none;
}

a:hover {
  color: var(--primary-purple-hover);
  text-decoration: underline;
}

/* Form Check Override */
.form-check-input:checked {
  background-color: var(--primary-purple);
  border-color: var(--primary-purple);
}

.form-check-input:focus {
  border-color: var(--primary-purple);
  box-shadow: 0 0 0 0.125rem rgba(156, 39, 176, 0.25);
}

/* Server Status */
.server-status {
  margin-top: 1.5rem;
}

.server-status-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.server-status-title svg {
  color: var(--text-secondary);
  vertical-align: middle;
}

.server-status-items {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.server-status-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.status-label {
  font-size: 0.875rem;
  color: var(--text-body);
  font-weight: 500;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  position: relative;
  display: inline-block;
}

.status-dot::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  opacity: 0.3;
}

.status-online {
  background-color: #4caf50;
}

.status-online::after {
  background-color: #4caf50;
  box-shadow: 0 0 8px rgba(76, 175, 80, 0.6);
}

.status-offline {
  background-color: #f44336;
}

.status-offline::after {
  background-color: #f44336;
  box-shadow: 0 0 8px rgba(244, 67, 54, 0.6);
}

/* Responsive adjustments for server status */
@media (max-width: 575.98px) {
  .server-status-items {
    gap: 1.25rem;
  }

  .status-label {
    font-size: 0.8rem;
  }

  .server-status-title {
    font-size: 0.85rem;
  }

  .server-status-title svg {
    width: 16px;
    height: 16px;
  }
}

@media (orientation: landscape) and (max-height: 600px) {
  .form-panel {
    padding: 1rem;
  }

  .auth-card {
    margin: 1rem auto;
    padding: 1.25rem 1rem;
  }

  .auth-logo {
    height: 50px;
    margin-bottom: 0.5rem !important;
  }

  .auth-header {
    margin-bottom: 1rem !important;
  }

  .auth-subtitle {
    font-size: 1.125rem;
    margin-bottom: 0.25rem !important;
  }

  .auth-description {
    font-size: 0.875rem;
  }

  .mb-3 {
    margin-bottom: 0.75rem !important;
  }

  .mb-4 {
    margin-bottom: 1rem !important;
  }

  .server-status {
    margin-top: 1rem;
  }

  .server-status-title {
    font-size: 0.8rem;
    margin-bottom: 0.5rem !important;
  }

  .server-status-items {
    gap: 1rem;
  }

  .status-label {
    font-size: 0.75rem;
  }

  hr.my-4 {
    margin-top: 0.75rem !important;
    margin-bottom: 0.75rem !important;
  }
}


/*
    Modal
*/

.sentinel-modal {
    border: none;
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-md);
    background-color: var(--background-white);
}

.sentinel-modal .modal-header {
    padding: var(--spacing-2xl) var(--spacing-2xl) var(--spacing-lg);
    background-color: transparent;
}

.sentinel-modal .modal-title {
    color: var(--text-primary);
    font-size: var(--font-size-lg);
}

.sentinel-modal .btn-close {
    opacity: 0.6;
    transition: opacity 0.3s ease;   
}

html[data-bs-theme="dark"] .sentinel-modal .btn-close {
    filter: invert(1);
}

.sentinel-modal .btn-close:hover {
    opacity: 1;
}

.sentinel-modal .modal-body {
    padding: 0 var(--spacing-2xl) var(--spacing-lg);
}

.sentinel-modal .modal-footer {
    padding: var(--spacing-lg) var(--spacing-2xl) var(--spacing-2xl);
    background-color: transparent;
}

.sentinel-modal .modal-footer .btn {
    border-radius: var(--border-radius);
}

.service-status-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 80px;
    height: 80px;
    background-color: rgba(211, 47, 47, 0.1);
    border-radius: 50%;
    margin: 0 auto;
}

html[data-bs-theme="dark"] .service-status-icon {
    background-color: rgba(239, 83, 80, 0.15);
}

.service-status-list {
    background-color: var(--background-light);
    border-radius: var(--border-radius);
    padding: var(--spacing-lg);
}

.service-item {
    display: flex;
    align-items: center;
    padding: var(--spacing-sm) 0;
}

    .service-item:not(:last-child) {
        border-bottom: 1px solid var(--border-color);
        margin-bottom: var(--spacing-sm);
        padding-bottom: var(--spacing-md);
    }

    .service-item .status-dot {
        margin-right: var(--spacing-md);
    }

.service-name {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    font-weight: 500;
}






/* ===============================
   Legal Document & Modal Styles
   =============================== */
.legal-document {
    font-family: 'Nunito Sans', 'Manrope', 'Open Sans', Arial, sans-serif;
    color: var(--text-body);
    background: none;
    font-size: 1rem;
    line-height: 1.7;
}

    .legal-document h4,
    .legal-document h5,
    .legal-document h6 {
        color: var(--primary-purple);
        font-weight: 700;
        margin-bottom: 0.75rem;
        border: none;
    }

    .legal-document h4 {
        font-size: 1.5rem;
    }

    .legal-document h5 {
        font-size: 1.15rem;
    }

    .legal-document h6 {
        font-size: 1rem;
    }

    .legal-document .alert {
        background: var(--background-light);
        color: var(--text-primary);
        border: 1px solid var(--border-color);
        border-radius: var(--border-radius-lg);
        padding: 0.75rem 1rem;
        font-size: 1rem;
        margin-bottom: 1.25rem;
    }

html[data-bs-theme="dark"] .legal-document .alert {
    background: #23232b;
    color: #f5f5f5;
    border: 1px solid #444;
}

.legal-document ul.list-unstyled {
    padding-left: 0;
    margin-bottom: 1.25rem;
}

    .legal-document ul.list-unstyled li {
        position: relative;
        padding-left: 1.5em;
        margin-bottom: 0.5em;
        list-style: none;
    }

        .legal-document ul.list-unstyled li::before {
            content: '\2022';
            color: var(--primary-purple);
            font-weight: bold;
            position: absolute;
            left: 0;
            top: 0.1em;
            font-size: 1.2em;
        }

.legal-document .bg-light {
    background: var(--background-light) !important;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

html[data-bs-theme="dark"] .legal-document .bg-light {
    background: #23232b !important;
    border: 1px solid #444;
    color: #f5f5f5;
}

.legal-document .contact-section {
    background: var(--background-light);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 1rem 1.25rem;
    font-size: 1rem;
    color: var(--text-primary);
}

html[data-bs-theme="dark"] .legal-document .contact-section {
    background: #23232b;
    border: 1px solid #444;
    color: #f5f5f5;
}

.legal-document address {
    font-style: normal;
    margin-bottom: 0;
}

.legal-document a {
    color: var(--primary-purple);
    text-decoration: underline;
}

    .legal-document a:hover {
        color: var(--primary-purple-hover);
    }

.legal-document hr {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 2rem 0;
}

/* Boxed lists for refund eligibility */
.legal-document .bg-light ul.list-unstyled {
    margin-bottom: 0;
}

/* Responsive adjustments for modal legal documents */
@media (max-width: 575.98px) {
    .sentinel-modal .modal-dialog {
        margin: 0.5rem;
    }

    .sentinel-modal .modal-content {
        padding: 0.5rem;
    }

    .legal-document {
        font-size: 0.97rem;
    }
}




/* ===================================
   Admin Dashboard Styles
   =================================== */

.admin-layout {
    background-image: url('../imgs/auth/login-background-2.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.admin-layout::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--background-overlay-light);
    z-index: 1;
    pointer-events: none;
}

.admin-layout .form-panel {
    z-index: 2;
}

.admin-layout .form-panel-wide {
    width: 90% !important;
    max-width: 90% !important;
}

.users-table {
    margin-bottom: 0;
}

.users-table thead th {
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    user-select: none;
}

.users-table thead th:hover {
    opacity: 0.8;
}

.users-table thead th .sort-icon {
    font-size: 12px;
    opacity: 0.6;
    margin-left: 4px;
}

.users-table tbody tr {
    cursor: pointer;
}

.users-table tbody td:last-child,
.users-table thead th:last-child {
    white-space: nowrap;
}

.pagination .page-link {
    color: var(--primary-purple);
    transition: all 0.2s ease;
}

.pagination .page-link:hover {
    color: var(--primary-purple-hover);
    background-color: rgba(156, 39, 176, 0.08);
    border-color: var(--primary-purple);
}

.pagination .page-link:focus {
    box-shadow: 0 0 0 0.2rem rgba(156, 39, 176, 0.25);
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-purple);
    border-color: var(--primary-purple);
    color: white;
}

.pagination .page-item.disabled .page-link {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

html[data-bs-theme='dark'] .pagination .page-link {
    color: var(--primary-purple);
    background-color: var(--background-white);
}

html[data-bs-theme='dark'] .pagination .page-link:hover {
    color: var(--primary-purple-hover);
    background-color: rgba(186, 104, 200, 0.12);
    border-color: var(--primary-purple);
}

html[data-bs-theme='dark'] .pagination .page-item.active .page-link {
    background-color: var(--primary-purple);
    border-color: var(--primary-purple);
    color: white;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-purple);
    box-shadow: 0 0 0 0.2rem rgba(156, 39, 176, 0.25);
}

html[data-bs-theme='dark'] .form-control:focus,
html[data-bs-theme='dark'] .form-select:focus {
    border-color: var(--primary-purple);
    box-shadow: 0 0 0 0.2rem rgba(186, 104, 200, 0.25);
}

.form-control-sm,
.form-select-sm {
    height: calc(1.5em + 0.5rem + 2px);
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
    padding-left: 0.5rem;
    font-size: 0.875rem;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .users-table {
        font-size: 14px;
    }
}
