/* ==========================================================================
   Admin Dashboard Styles - Peak Learning Admin Portal
   ========================================================================== */

/* Main layout */
.main-content {
  margin-left: 220px;
  padding: 0 0 140px 0;
  min-height: 100vh;
  background: transparent;
  /* Layout stability improvements */
  contain: layout style;
  transform: translateZ(0);
}

/* Sidebar navigation */
.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  width: 220px;
  height: 100vh;
  background: linear-gradient(to right, #0e1d58, #141a72);
  backdrop-filter: blur(20px);
  border-right: 1px solid rgba(30, 144, 255, 0.2);
  overflow-y: auto;
  z-index: 1000;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

/* Logo section */
.logo {
  display: flex;
  align-items: center;
  padding: 50px 25px 35px 25px;
  border-bottom: 1px solid rgba(30, 144, 255, 0.3);
  margin-bottom: 35px;
  position: relative;
  background: none;
  border-radius: 0;
  pointer-events: none;
  cursor: default;
}

/* Navigation items */
.nav-item {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  contain: layout style paint;
}

.nav-item:hover {
  background: rgba(59, 130, 246, 0.1);
  color: white;
}

.nav-item.active {
  background: linear-gradient(135deg, #00248c, #006eff) !important;
  color: white;
  font-weight: 600;
}

.nav-icon {
  margin-right: 15px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-text {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

/* Bottom navigation menu */
.nav-menu-bottom {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 15px;
}

/* Hamburger menu for mobile */
.hamburger-menu {
  position: absolute;
  top: 15px;
  left: 20px;
  width: 28px;
  height: 28px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 1001;
  transition: all 0.3s ease;
  background: linear-gradient(135deg, rgba(30, 144, 255, 0.2), rgba(65, 105, 225, 0.3));
  border-radius: 8px;
  border: 1px solid rgba(30, 144, 255, 0.3);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 12px rgba(30, 144, 255, 0.2);
  contain: layout style paint;
}

.hamburger-line {
  width: 25px;
  height: 2px;
  background: white;
  margin: 2px 0;
  transition: all 0.3s ease;
}

/* Dashboard stats */
.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.stat-card {
  background: rgb(15 26 57);
  border-radius: 16px;
  padding: 24px;
  border: 1px solid rgba(30, 144, 255, 0.2);
  backdrop-filter: blur(20px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  contain: layout style paint;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  border-color: rgba(30, 144, 255, 0.4);
}

.stat-value {
  font-size: 32px;
  font-weight: 700;
  color: #1e90ff;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Admin tables */
.admin-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  background: rgba(26, 26, 46, 0.6);
  border-radius: 12px;
  overflow: hidden;
  backdrop-filter: blur(20px);
  border: 1px solid rgba(30, 144, 255, 0.2);
}

.admin-table th,
.admin-table td {
  padding: 16px;
  text-align: left;
  border-bottom: 1px solid rgba(30, 144, 255, 0.1);
}

.admin-table th {
  background: rgba(30, 144, 255, 0.1);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.5px;
  text-align: center;
}

/* Sortable table headers */
.admin-table th.sortable {
  cursor: pointer;
  user-select: none;
  transition: background-color 0.2s ease;
  position: relative;
}

.admin-table th.sortable:hover {
  background: rgba(30, 144, 255, 0.2);
}

/* Sort carets */
.sort-caret,
.admin-table th.sortable .sort-caret {
  display: inline-flex !important;
  flex-direction: column !important;
  margin-left: 8px !important;
  vertical-align: middle !important;
  opacity: 0.4 !important;
  transition: opacity 0.2s ease !important;
  position: relative !important;
  z-index: 10 !important;
  visibility: visible !important;
  content: none !important;
  background: none !important;
  border: none !important;
  padding: 0 !important;
  outline: none !important;
  box-shadow: none !important;
  text-shadow: none !important;
}

/* Additional reset to override any ::before or ::after pseudo-elements */
.sort-caret::before,
.sort-caret::after,
.admin-table th.sortable .sort-caret::before,
.admin-table th.sortable .sort-caret::after {
  display: none !important;
  content: none !important;
}

.admin-table th.sortable:hover .sort-caret {
  opacity: 0.7 !important;
}

.caret-up, .caret-down,
.sort-caret .caret-up,
.sort-caret .caret-down {
  width: 0 !important;
  height: 0 !important;
  border-left: 4px solid transparent !important;
  border-right: 4px solid transparent !important;
  font-size: 0 !important;
  line-height: 0 !important;
  display: block !important;
  visibility: visible !important;
  position: relative !important;
  content: none !important;
  padding: 0 !important;
  margin: 0 !important;
  outline: none !important;
  box-shadow: none !important;
  background: none !important;
  text-shadow: none !important;
}

.caret-up {
  border-bottom: 4px solid rgba(255, 255, 255, 0.7) !important;
  margin-bottom: 2px !important;
}

.caret-down {
  border-top: 4px solid rgba(255, 255, 255, 0.7) !important;
}

/* Active sort states */
th.sort-asc .caret-up {
  opacity: 1 !important;
  border-bottom-color: #fff !important;
}

th.sort-desc .caret-down {
  opacity: 1 !important;
  border-top-color: #fff !important;
}

th.sort-asc .caret-down,
th.sort-desc .caret-up {
  opacity: 0.2 !important;
}

.admin-table tr:hover {
  background: rgba(30, 144, 255, 0.05);
}

/* Admin forms */
.admin-form {
  background: linear-gradient(135deg, rgba(26, 26, 46, 0.6), rgba(22, 33, 62, 0.7));
  border-radius: 16px;
  padding: 32px;
  border: 1px solid rgba(30, 144, 255, 0.2);
  backdrop-filter: blur(20px);
  margin: 20px 0;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

/* Charts container */
.chart-container {
  background: linear-gradient(135deg, rgba(26, 26, 46, 0.6), rgba(22, 33, 62, 0.7));
  border-radius: 16px;
  padding: 24px;
  border: 1px solid rgba(30, 144, 255, 0.2);
  backdrop-filter: blur(20px);
  margin: 20px 0;
  height: 400px;
  contain: layout style paint;
}

/* Results container */
#assessmentResultsContainer {
  max-height: 70vh;
  overflow-y: auto;
  padding: 20px;
  background: rgba(26, 26, 46, 0.6);
  border-radius: 12px;
  border: 1px solid rgba(30, 144, 255, 0.2);
  contain: layout style paint;
}

#assessmentResultsContainer::-webkit-scrollbar {
  width: 8px;
}

#assessmentResultsContainer::-webkit-scrollbar-track {
  background: rgba(58, 61, 74, 0.3);
  border-radius: 4px;
}

#assessmentResultsContainer::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #1e90ff, #4169e1);
  border-radius: 4px;
}

#assessmentResultsContainer::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #4169e1, #6495ed);
}

/* Status indicators */
.status-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-success {
  background: rgba(34, 197, 94, 0.2);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.status-warning {
  background: rgba(251, 146, 60, 0.2);
  color: #fb923c;
  border: 1px solid rgba(251, 146, 60, 0.3);
}

.status-error {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}
.admin-login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    background-image: url('/assets/peak-cb-10_1763790650438.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.admin-login-box {
    background: linear-gradient(135deg, rgb(255 255 255 / 20%), rgba(22, 33, 62, 0.8));
    backdrop-filter: blur(20px);
    padding: 50px;
    border-radius: 20px;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 100px rgba(30, 144, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    max-width: 480px;
}

.admin-login-header {
    text-align: center;
    margin-bottom: 40px;
}

.admin-login-logo {
    margin-bottom: 20px;
}

.admin-login-logo img {
    height: 120px;
    width: auto;
}

.admin-login-header h1 {
    font-size: 26px;
    color: white;
    margin-bottom: 10px;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(30, 144, 255, 0.3);
}

.admin-login-header p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
}

.admin-form-group {
    margin-bottom: 25px;
    position: relative;
}

.admin-form-group label {
    display: block;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    font-size: 14px;
}

.admin-form-group input {
    width: 100%;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    font-size: 15px;
    color: white;
    transition: all 0.3s;
}

.password-input-wrapper {
    position: relative;
    width: 100%;
}

.password-input-wrapper input {
    padding-right: 50px;
}

.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.5);
    transition: all 0.3s;
}

.password-toggle:hover {
    color: rgba(255, 255, 255, 0.9);
}

.password-toggle svg {
    display: block;
}

.admin-form-group input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.get-full-report-btn {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    background: linear-gradient(135deg, #1e3a8a, #3b82f6, #60a5fa);
    color: white;
    border: none;
    padding: 18px 38px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow:
        0 10px 30px rgba(59, 130, 246, 0.3),
        0 4px 15px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    text-transform: uppercase;
    min-width: 220px;
}

.get-full-report-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.get-full-report-btn:hover::before {
    left: 100%;
}

.get-full-report-btn:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow:
        0 15px 40px rgba(59, 130, 246, 0.4),
        0 8px 25px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    background: linear-gradient(135deg, #2563eb, #60a5fa, #93c5fd);
}

.get-full-report-btn:active {
    transform: translateY(-2px) scale(1.02);
    transition: all 0.1s ease;
}

.report-icon {
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.get-full-report-btn:hover .report-icon {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.full-report-content {
    max-width: 95%;
    max-height: 90vh;
    overflow-y: auto;
}

.report-actions {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.print-report-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #9ca3af, #d1d5db, #e5e7eb);
    color: #1f2937;
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 16px 32px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
}

.print-report-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.6);
    background: linear-gradient(135deg, #d1d5db, #e5e7eb, #f3f4f6);
}

.report-grid {
    display: grid;
    gap: 12px;
    margin-top: 20px;
}

.report-user-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px 16px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
    font-size: 11px;
    transition: all 0.3s ease;
}

.report-user-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(59, 130, 246, 0.3);
}

.report-field {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.report-field-label {
    color: rgba(255, 255, 255, 0.5);
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.report-field-value {
    color: white;
    font-size: 11px;
    font-weight: 500;
}

.report-header {
    background: rgba(59, 130, 246, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 8px;
    padding: 12px 16px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 8px;
}

.admin-form-group input:focus {
    outline: none;
    border-color: #1e90ff;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 20px rgba(30, 144, 255, 0.2);
}

@media print {
    body {
        background: white !important;
    }

    .admin-sidebar,
    .mobile-nav,
    .user-profile,
    .modal-header,
    .report-actions,
    .get-full-report-btn,
    .modal-bg-video,
    .close-modal {
        display: none !important;
    }

    .modal {
        position: static !important;
        background: white !important;
    }

    .modal-content {
        position: static !important;
        background: white !important;
        backdrop-filter: none !important;
        border: none !important;
        box-shadow: none !important;
        max-width: 100% !important;
        max-height: none !important;
        padding: 20px !important;
    }

    .full-report-content {
        max-width: 100% !important;
        max-height: none !important;
        overflow: visible !important;
    }

    .report-grid {
        gap: 8px !important;
    }

    .report-user-card {
        background: white !important;
        border: 1px solid #e5e7eb !important;
        backdrop-filter: none !important;
        page-break-inside: avoid;
        margin-bottom: 8px;
        padding: 10px 12px !important;
    }

    .report-field-label {
        color: #6b7280 !important;
        font-size: 8px !important;
    }

    .report-field-value {
        color: #111827 !important;
        font-size: 10px !important;
    }

    .report-header {
        background: #f3f4f6 !important;
        border: 1px solid #d1d5db !important;
        backdrop-filter: none !important;
        color: #111827 !important;
        font-size: 9px !important;
        page-break-after: avoid;
    }

    #fullReportModal img {
        filter: grayscale(1) brightness(0.5);
    }

    @page {
        margin: 0.5cm;
        size: landscape;
    }
}

.admin-btn-primary {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #1e90ff 0%, #4169e1 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 5px 20px rgba(30, 144, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.admin-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(30, 144, 255, 0.4);
}

.admin-error-message {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 25px;
    font-size: 14px;
}

.admin-portal {
    display: none;
}

.admin-portal.active {
    display: block;
}

.page-content {
    display: none;
    padding: 30px;
}

.page-content.active {
    display: block;
}

.page-header {
    margin-bottom: 35px;
}

.page-header h1 {
    font-size: 18px;
    color: white;
    margin-bottom: 8px;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(30, 144, 255, 0.3);
    display: flex;
    align-items: center;
    gap: 12px;
}

.page-header h1 img {
    height: 22px;
    width: auto;
}

.page-header h1 .separator {
    color: rgba(255, 255, 255, 0.3);
    font-weight: 300;
}

.page-header p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
    margin-bottom: 35px;
}

.stat-card {
    background: rgb(15 26 57);
    backdrop-filter: blur(20px);
    padding: 30px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(30, 144, 255, 0.2);
}

.stat-card h3 {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-card .stat-value {
    font-size: 32px;
    font-weight: 700;
    color: #1e90ff;
    margin-bottom: 6px;
    text-shadow: 0 2px 10px rgba(30, 144, 255, 0.3);
}

.stat-card .stat-label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    font-weight: 400;
}

.stat-card .stat-icon {
    display: none;
}

.card {
    background: linear-gradient(135deg, rgb(26 26 46 / 93%), rgb(22 33 62));
    backdrop-filter: blur(20px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    padding: 30px;
    margin-bottom: 25px;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.card-header h2 {
    font-size: 18px;
    color: white;
    font-weight: 600;
}

.btn {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.btn-add {
    background: linear-gradient(135deg, #1e90ff 0%, #4169e1 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(30, 144, 255, 0.3);
    padding: 10px 20px;
}

.btn-add:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(30, 144, 255, 0.4);
}

.btn-edit {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    padding: 8px 16px !important;
    font-size: 12px;
    box-shadow: 0 3px 10px rgba(59, 130, 246, 0.3);
}

.btn-primary {
    background: linear-gradient(135deg, #1e90ff 0%, #4169e1 100%);
    color: white;
    padding: 8px 16px !important;
    font-size: 12px;
    box-shadow: 0 3px 10px rgba(30, 144, 255, 0.3);
}

.btn-delete {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    padding: 8px 16px !important;
    font-size: 12px;
    box-shadow: 0 3px 10px rgba(239, 68, 68, 0.3);
}

.btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    color: white !important;
    padding: 8px 16px !important;
    font-size: 12px;
    box-shadow: 0 3px 10px rgba(16, 185, 129, 0.3) !important;
}

.btn-success:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4) !important;
}

.search-box {
    width: 100%;
    padding: 14px 20px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    font-size: 14px;
    color: white;
    margin-bottom: 25px;
}

.search-box::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.search-box:focus {
    outline: none;
    border-color: #1e90ff;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 20px rgba(30, 144, 255, 0.2);
}

.table-container {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead {
    background: rgba(30, 144, 255, 0.1);
}

th {
    padding: 10px 8px;
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 1px;
}

td {
    padding: 10px 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

/* Users Table - Compact Layout */
.users-table {
    table-layout: fixed;
    width: 100%;
}

.users-table th,
.users-table td {
    padding: 8px 4px;
    font-size: 12px;
}

/* Name Column - Tightened */
.users-table th:nth-child(1),
.users-table td[data-label="Name"] {
    width: 14%;
    padding: 8px 4px;
}

/* Email Column - Tightened */
.users-table th:nth-child(2),
.users-table td[data-label="Email"] {
    width: 16%;
    padding: 8px 4px;
}

/* Role Column - Reduced */
.users-table th:nth-child(3),
.users-table td[data-label="Role"] {
    width: 8%;
    padding: 8px 4px;
    text-align: center;
}

/* Created Column - Reduced */
.users-table th:nth-child(4),
.users-table td[data-label="Created"] {
    width: 7%;
    padding: 8px 4px;
}

/* Score Column - Reduced */
.users-table th:nth-child(5),
.users-table td[data-label="Score"] {
    width: 6%;
    padding: 8px 4px;
}

/* Progress Column - Unchanged */
.users-table th:nth-child(6),
.users-table td[data-label="Progress"] {
    width: 14%;
    padding: 10px 8px;
}

/* Actions Column - Increased for buttons */
.users-table th:nth-child(7),
.users-table td[data-label="Actions"] {
    width: 35%;
    padding: 8px 4px;
}

/* Skillbuilders button style */
.btn-skillbuilders {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%) !important;
    border: 1px solid #6d28d9 !important;
    box-shadow: 0 2px 4px rgba(139, 92, 246, 0.3);
}

.btn-skillbuilders:hover {
    background: linear-gradient(135deg, #a78bfa 0%, #8b5cf6 100%) !important;
}

.btn-skillbuilders.sb-sent {
    background: linear-gradient(135deg, #a78bfa 0%, #8b5cf6 100%) !important;
    border: 1px solid #7c3aed !important;
    box-shadow: 0 2px 4px rgba(139, 92, 246, 0.5);
}

tr:hover {
    background: rgba(30, 144, 255, 0.05);
}

.badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    text-align: center;
}

.badge-admin {
    background: linear-gradient(135deg, #1e90ff 0%, #4169e1 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(30, 144, 255, 0.3);
}

.badge-super-admin {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3);
}

.badge-user {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
}

/* Skill Builders Table Styling */
.skillbuilders-table th {
    text-align: center;
    white-space: nowrap;
    padding: 12px 8px;
    font-size: 12px;
}

.skillbuilders-table th:first-child {
    text-align: left;
    position: sticky;
    left: 0;
    background: rgb(15 26 57);
    z-index: 2;
}

.skillbuilders-table td:first-child {
    position: sticky;
    left: 0;
    background: rgb(15 26 57);
    z-index: 1;
}

/* Sortable table headers */
.skillbuilders-table th.sortable {
    cursor: pointer;
    user-select: none;
    position: relative;
    padding-right: 24px;
    transition: background-color 0.15s ease;
}

.skillbuilders-table th.sortable:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.skillbuilders-table th.sortable::after {
    content: '▼';
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 10px;
    color: rgba(255, 255, 255, 0.3);
    transition: color 0.15s ease;
}

.skillbuilders-table th.sortable.sort-asc::after {
    content: '▲';
    color: #60a5fa;
}

.skillbuilders-table th.sortable.sort-desc::after {
    content: '▼';
    color: #60a5fa;
}

.skillbuilders-table th.sortable.sort-asc,
.skillbuilders-table th.sortable.sort-desc {
    background-color: rgba(96, 165, 250, 0.1);
}

/* SB Dropdown Menu */
.sb-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 220px;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    z-index: 1000;
    padding: 6px 0;
    margin-top: 4px;
}

.sb-dropdown-item {
    display: block;
    width: 100%;
    padding: 8px 16px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.85);
    font-size: 13px;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.sb-dropdown-item:hover {
    background-color: rgba(139, 92, 246, 0.2);
    color: #ffffff;
}

.sb-dropdown-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 4px 0;
}

.sb-dropdown-header {
    padding: 6px 16px 4px;
    font-size: 11px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-completed {
    background: linear-gradient(135deg, #1e90ff 0%, #4169e1 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(30, 144, 255, 0.3);
}

.badge-pending {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(251, 191, 36, 0.3);
}

.modal {
    display: none !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    min-height: 100vh !important;
    justify-content: center !important;
    align-items: center !important;
    z-index: 2000 !important;
    overflow-y: auto !important;
    background: linear-gradient(to right, #14196a, #1e29a7) !important;
    padding: 0 !important;
    border-radius: 0 !important;
    max-width: none !important;
    max-height: none !important;
}

.modal::after {
    display: none !important;
}

.modal-video-background {
    display: none !important;
}

.modal.active {
    display: flex !important;
}

.modal-content {
    background: rgba(13, 27, 42, 0.95);
    backdrop-filter: blur(20px);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 550px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 100px rgba(30, 144, 255, 0.1);
    position: relative;
    z-index: 1;
    margin: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h3 {
    font-size: 20px;
    color: white;
    font-weight: 600;
}

.close-modal {
    font-size: 28px;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.3s;
}

.close-modal:hover {
    color: #1e90ff;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

select {
    width: 100%;
    padding: 14px 20px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    font-size: 14px;
    color: white;
}

select option {
    background: #0d1b2a;
    color: white;
}

select:focus {
    outline: none;
    border-color: #1e90ff;
    box-shadow: 0 0 20px rgba(30, 144, 255, 0.2);
}

.chart-container {
    position: relative;
    height: 320px;
    margin-bottom: 25px;
    z-index: 10;
}

.user-result-card {
    background: linear-gradient(
        90deg,
        rgb(13 37 65 / 0%),
        rgb(0 0 0 / 0%)
    );
    backdrop-filter: blur(15px);
    padding: 25px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    margin-bottom: 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.user-result-card:hover {
    background: linear-gradient(
        135deg,
        rgb(12 76 242 / 71%),
        rgba(22, 33, 62, 0.6)
    );
    box-shadow: 0 12px 35px rgba(30, 144, 255, 0.3);
    transform: translateY(-3px);
    border-color: rgba(30, 144, 255, 0.3);
}

.user-result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.user-info h3 {
    font-size: 18px;
    color: white;
    margin-bottom: 6px;
    font-weight: 600;
}

.user-info p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

.score-display {
    font-size: 48px;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(30, 144, 255, 0.5);
}


@media (max-width: 1024px) {
    .sidebar-powered-by {
        display: none !important;
    }
}

@media (max-width: 1024px) {
    .page-header h1 {
        font-size: 16px;
        gap: 10px;
    }

    .page-header h1 img {
        height: 20px;
    }

    .card-header h2 {
        font-size: 16px;
    }

    .btn {
        padding: 7px 14px;
        font-size: 11px;
    }

    .btn-add {
        padding: 9px 18px;
    }
}

@media (max-width: 768px) {
    .page-content {
        margin-left: 0 !important;
        padding: 15px;
    }

    .page-header h1 {
        font-size: 15px;
        gap: 8px;
        flex-wrap: wrap;
    }

    .page-header h1 img {
        height: 18px;
    }

    .page-header {
        margin-bottom: 20px;
    }

    .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .card-header h2 {
        font-size: 16px;
    }

    .btn {
        padding: 7px 12px;
        font-size: 11px;
        letter-spacing: 0.3px;
    }

    .btn-add {
        padding: 8px 16px;
        width: 100%;
    }

    .stats-grid {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .stat-card {
        display: flex;
        align-items: center;
        gap: 20px;
        width: 100%;
        max-width: 400px;
        padding: 20px 30px;
        border-radius: 20px;
    }

    .stat-card .stat-icon {
        width: 80px;
        height: 80px;
        min-width: 80px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 36px;
        background: rgba(30, 144, 255, 0.1);
        border: 2px solid rgba(30, 144, 255, 0.3);
    }

    .stat-card .stat-content {
        flex: 1;
        text-align: left;
    }

    .stat-card h3 {
        font-size: 13px;
        margin-bottom: 5px;
    }

    .stat-card .stat-value {
        font-size: 28px;
        margin-bottom: 0;
    }

    .modal-header h3 {
        font-size: 18px;
    }

    .modal-content {
        padding: 24px;
    }

    .stat-card .stat-label {
        display: none;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    /* AQ Profiles cards - Mobile optimization */
    .user-result-card {
        padding: 20px;
    }

    .user-result-header {
        display: flex !important;
        flex-direction: column !important;
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    .user-result-header .user-info h3 {
        font-size: 20px;
        margin-bottom: 8px;
    }

    .user-result-header .user-info p {
        font-size: 14px;
    }

    .user-result-header > div:first-child {
        width: 100%;
        padding-bottom: 16px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .user-result-header > div:nth-child(2) {
        width: 100% !important;
        min-width: unset !important;
        max-width: 100% !important;
        order: 3;
    }

    .user-result-header > div:nth-child(2) h4 {
        text-align: center;
        margin-bottom: 15px;
    }

    .user-result-header > div:last-child {
        width: 100%;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center;
        gap: 15px;
        order: 2;
        padding: 16px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .user-result-header .score-display {
        font-size: 48px;
    }

    .user-result-header .score-badge {
        padding: 8px 16px;
        font-size: 11px;
    }

    .user-result-header canvas {
        max-width: 100% !important;
        height: auto !important;
    }

    .sidebar-powered-by {
        display: none !important;
    }

    /* Mobile-friendly table - Card layout */
    .table-container {
        overflow-x: visible;
    }

    table {
        border: 0;
    }

    table thead {
        display: none;
    }

    table tbody {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    table tr {
        display: flex;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.03);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 16px;
        padding: 20px;
        margin-bottom: 0;
    }

    table tr:hover {
        background: rgba(30, 144, 255, 0.08);
        border-color: rgba(30, 144, 255, 0.3);
    }

    table td {
        display: flex;
        flex-direction: column;
        gap: 8px;
        padding: 12px 0;
        border: none;
        text-align: left;
    }

    table td::before {
        content: attr(data-label);
        font-weight: 600;
        font-size: 11px;
        text-transform: uppercase;
        letter-spacing: 1px;
        color: rgba(255, 255, 255, 0.5);
        margin-bottom: 4px;
    }

    table td[data-label="Name"] {
        padding-top: 0;
        margin-bottom: 8px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding-bottom: 16px;
    }

    table td[data-label="Name"]::before {
        display: none;
    }

    table td[data-label="Name"] > div {
        font-size: 18px;
        font-weight: 600;
    }

    table td[data-label="Actions"] {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
        margin-top: 12px !important;
        padding-top: 16px !important;
        border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
        width: 100% !important;
    }

    table td[data-label="Actions"]::before {
        display: none !important;
    }

    table td[data-label="Actions"] button,
    table td[data-label="Actions"] .btn,
    table td[data-label="Actions"] .btn-edit,
    table td[data-label="Actions"] .btn-primary,
    table td[data-label="Actions"] .btn-delete {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 100% !important;
        padding: 14px 20px !important;
        font-size: 13px !important;
        margin: 0 !important;
        display: block !important;
        text-align: center !important;
        justify-content: center !important;
        box-sizing: border-box !important;
        flex: 1 1 100% !important;
    }
}

/* Results Modal Styles */
.results-modal-content {
    max-width: 95vw;
    width: 1200px;
    max-height: 95vh;
    height: auto;
    background: linear-gradient(112deg, #001955 0%, #0049bf 100%);
    border-radius: 16px;
    overflow: hidden;
    position: relative;
}

.results-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.2);
}

.results-modal-logo {
    height: 40px;
    width: auto;
    opacity: 0.9;
}

.results-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 40px;
    color: rgba(255, 255, 255, 0.8);
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top: 4px solid #60A5FA;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

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

/* Results Content Styles */
#assessmentResultsContainer {
    max-height: 80vh;
    overflow-y: auto;
    padding: 0;
}

#assessmentResultsContainer::-webkit-scrollbar {
    width: 8px;
}

#assessmentResultsContainer::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

#assessmentResultsContainer::-webkit-scrollbar-thumb {
    background: rgba(96, 165, 250, 0.6);
    border-radius: 4px;
}

#assessmentResultsContainer::-webkit-scrollbar-thumb:hover {
    background: rgba(96, 165, 250, 0.8);
}

/* Print-specific styles for results modal */
@media print {
    .modal-video-background {
        display: none !important;
    }

    .results-modal-content {
        max-width: 100%;
        max-height: 100%;
        margin: 0;
        padding: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .results-modal-header {
        display: none !important;
    }

    .close-modal {
        display: none !important;
    }

    #assessmentResultsContainer {
        max-height: none;
        overflow: visible;
    }
}

/* Import results template styles */
.print-page {
    width: 100%;
    min-height: 8.5in;
    background: linear-gradient(112deg, #001955 0%, #0049bf 100%);
    padding: 30px 40px;
    box-sizing: border-box;
    position: relative;
    page-break-after: always;
    page-break-inside: avoid;
}

.print-page:last-child {
    page-break-after: avoid;
}

.congrats-section {
    border-radius: 16px;
    padding: 18px 30px;
    margin-bottom: 18px;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: rgba(26, 26, 46, 0.7);
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.congrats-title {
    font-size: 20px;
    font-weight: 700;
    background: linear-gradient(135deg, #60A5FA 0%, #3B82F6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: #ffffff;
    background-clip: text;
    margin-bottom: 8px;
}

.congrats-text {
    font-size: 13px;
    line-height: 2.0;
    color: rgba(255, 255, 255, 0.85);
    max-width: 1000px;
    margin: 0 auto;
    font-weight: bold;
}

.page1-score-visualization {
    text-align: center;
    margin-bottom: 15px;
}

.page1-score-circle {
    width: 140px;
    height: 140px;
    margin: 0 auto 12px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.8) 0%, rgba(37, 99, 235, 0.8) 100%);
    border: 3px solid rgba(96, 165, 250, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 32px rgba(59, 130, 246, 0.4);
}

.page1-score-number {
    font-size: 56px;
    font-weight: 900;
    color: white;
    line-height: 1;
}

.page1-score-title {
    font-size: 24px;
    color: white;
    font-weight: 600;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.page1-score-label {
    font-size: 16px;
    color: white;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 500;
}

.page1-mountain-chart {
    position: relative;
    width: 100%;
    max-width: 850px;
    margin: 0 auto;
    height: auto;
}

.page1-bell-curve-svg {
    width: 100%;
    height: 200px;
    filter: none;
    overflow: visible;
}

.page1-scale-container {
    position: relative;
    margin-top: 0;
    background: rgba(15, 23, 42, 0.95);
    padding: 15px 60px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-radius: 12px;
}

.page1-scale-numbers {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.page1-scale-number {
    color: white;
    font-size: 18px;
    font-weight: 700;
}

.page1-range-labels {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.page1-range-label {
    color: #F59E0B;
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    line-height: 1.2;
    text-align: center;
}

/* Dimensions Table */
.page1-dimensions-table {
    max-width: 700px;
    margin: 25px auto 0;
    background: rgba(26, 26, 46, 0.6);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 16px;
    padding: 18px;
}

.page1-table-header {
    display: grid;
    grid-template-columns: 80px 1fr 1fr;
    gap: 12px;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page1-table-header-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.page1-table-header-color {
    width: 20px;
    height: 20px;
    border-radius: 4px;
}

.page1-global-average {
    background: linear-gradient(135deg, #60A5FA 0%, #3B82F6 100%);
}

.page1-first-score-color {
    background: linear-gradient(135deg, #F7931E 0%, #F59E0B 100%);
}

.page1-table-row {
    display: grid;
    grid-template-columns: 80px 1fr 1fr;
    gap: 12px;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.page1-table-row:last-child {
    border-bottom: none;
}

.page1-table-row.total-row {
    margin-top: 8px;
    padding-top: 15px;
    border-top: 2px solid rgba(59, 130, 246, 0.3);
}

.page1-dimension-icon-cell {
    display: flex;
    justify-content: center;
}

.page1-table-dimension-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 20px;
    color: white;
}

.page1-table-dimension-icon.control-icon {
    background: linear-gradient(135deg, #60A5FA 0%, #3B82F6 100%);
}

.page1-table-dimension-icon.ownership-icon {
    background: linear-gradient(135deg, #FB923C 0%, #F97316 100%);
}

.page1-table-dimension-icon.reach-icon {
    background: linear-gradient(135deg, #22D3EE 0%, #06B6D4 100%);
}

.page1-table-dimension-icon.endurance-icon {
    background: linear-gradient(135deg, #34D399 0%, #10B981 100%);
}

.page1-table-dimension-icon.total-icon {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
}

.page1-table-score {
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    color: white;
}

.page1-table-score.global-score {
    color: #60A5FA;
}

.page1-table-score.first-score {
    color: #F7931E;
}

.page1-table-score.total-score {
    font-size: 26px;
}

/* AQ Introduction Sections */
.aq-intro-section {
    background: rgba(26, 26, 46, 0.7);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 15px;
}

.aq-intro-section p {
    color: white;
    font-size: 15px;
    line-height: 1.6;
    margin: 0 0 12px 0;
}

.aq-intro-section p:last-child {
    margin-bottom: 0;
}

/* Results at a Glance */
.glance-dimension {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 18px;
    padding: 15px;
    background: rgba(30, 41, 59, 0.5);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.glance-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.control-icon-glance {
    background: linear-gradient(135deg, #60A5FA 0%, #3B82F6 100%);
}

.ownership-icon-glance {
    background: linear-gradient(135deg, #FB923C 0%, #F97316 100%);
}

.reach-icon-glance {
    background: linear-gradient(135deg, #22D3EE 0%, #06B6D4 100%);
}

.endurance-icon-glance {
    background: linear-gradient(135deg, #34D399 0%, #10B981 100%);
}

.glance-content {
    flex: 1;
}

.glance-title {
    font-size: 15px;
    font-weight: 700;
    color: white;
    margin: 0 0 6px 0;
    letter-spacing: 1px;
}

.glance-description {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.8);
    font-style: italic;
    margin: 0 0 12px 0;
    line-height: 1.4;
}

.glance-bars {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.glance-bar-row {
    display: flex;
    align-items: center;
    gap: 15px;
}

.glance-bar-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 120px;
}

.glance-bar-track {
    flex: 1;
    height: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    overflow: hidden;
}

.glance-bar-fill {
    height: 100%;
    border-radius: 6px;
    transition: width 0.5s ease;
}

.glance-bar-fill.global-fill {
    background: linear-gradient(90deg, #F59E0B 0%, #F7931E 100%);
}

.glance-bar-fill.first-fill {
    background: linear-gradient(90deg, #3B82F6 0%, #60A5FA 100%);
}

.glance-score {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

/* Print Button */
.print-pdf-button {
    position: absolute;
    top: 20px;
    right: 30px;
    z-index: 99999;
    background: linear-gradient(135deg, #9ca3af, #d1d5db, #e5e7eb);
    color: #1f2937;
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 16px;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
    width: 56px;
    height: 56px;
}

.print-pdf-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.6);
    background: linear-gradient(135deg, #d1d5db, #e5e7eb, #f3f4f6);
}

.print-pdf-button svg {
    width: 26px;
    height: 26px;
}

@media print {
    .print-pdf-button {
        display: none !important;
    }
}

/* Report Buttons Container */
.report-buttons-container {
    display: flex;
    gap: 15px;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
}

/* Excel and PDF Report Buttons - Bigger with Chrome Style */
.get-excel-report-btn,
.get-pdf-report-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 12px !important;
    background: linear-gradient(135deg, #9ca3af, #d1d5db, #e5e7eb) !important;
    color: #1f2937 !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    padding: 16px 32px !important;
    border-radius: 8px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    letter-spacing: 1px !important;
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative !important;
    overflow: hidden !important;
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.5) !important;
    text-transform: uppercase !important;
    min-width: 180px !important;
    width: auto !important;
    max-width: none !important;
}

.get-excel-report-btn::before,
.get-pdf-report-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.get-excel-report-btn:hover::before,
.get-pdf-report-btn:hover::before {
    left: 100%;
}

.get-excel-report-btn:hover,
.get-pdf-report-btn:hover {
    transform: scale(1.02) !important;
    box-shadow:
        0 6px 16px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.6) !important;
    background: linear-gradient(135deg, #d1d5db, #e5e7eb, #f3f4f6) !important;
    border-color: rgba(255, 255, 255, 0.6) !important;
}

.get-excel-report-btn:active,
.get-pdf-report-btn:active {
    transform: scale(1.01) !important;
    transition: all 0.1s ease !important;
}

/* Both buttons use the same chrome gradient theme */
.get-excel-report-btn:hover {
    background: linear-gradient(135deg, #d1d5db, #e5e7eb, #f3f4f6) !important;
    box-shadow:
        0 6px 16px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.6) !important;
}

.get-pdf-report-btn:hover {
    background: linear-gradient(135deg, #d1d5db, #e5e7eb, #f3f4f6) !important;
    box-shadow:
        0 6px 16px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.6) !important;
}

/* Report icon styling */
.get-excel-report-btn .report-icon,
.get-pdf-report-btn .report-icon {
    width: 16px;
    height: 16px;
    background: rgba(31, 41, 55, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: bold;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(31, 41, 55, 0.2);
    transition: all 0.3s ease;
}

.get-excel-report-btn:hover .report-icon,
.get-pdf-report-btn:hover .report-icon {
    background: rgba(31, 41, 55, 0.15);
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Mobile responsive for report buttons */
@media (max-width: 768px) {
    .report-buttons-container {
        justify-content: center;
        margin-top: 20px;
        gap: 10px;
    }

    .get-excel-report-btn,
    .get-pdf-report-btn {
        min-width: 100px !important;
        padding: 7.5px 12px !important;
        font-size: 7.5px !important;
    }

    .get-excel-report-btn .report-icon,
    .get-pdf-report-btn .report-icon {
        width: 11px;
        height: 11px;
        font-size: 6px;
    }
}

@media (max-width: 480px) {
    .report-buttons-container {
        flex-direction: column;
        width: 100%;
    }

    .get-excel-report-btn,
    .get-pdf-report-btn {
        width: 100% !important;
        max-width: 175px !important;
        justify-content: center !important;
    }
}

/* Settings Page Sections */
.settings-section {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid rgba(30, 144, 255, 0.15);
}

.settings-section:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.settings-section-header {
    color: rgba(255, 255, 255, 0.95) !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    margin-bottom: 24px !important;
    padding: 16px 20px !important;
    background: linear-gradient(135deg, rgba(30, 144, 255, 0.15), rgba(65, 105, 225, 0.1)) !important;
    border-left: 4px solid rgba(30, 144, 255, 0.8) !important;
    border-radius: 8px !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
}

/* Enhanced Admin Form Group */
.admin-form-group {
    margin-bottom: 28px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.admin-form-group:hover {
    background: linear-gradient(135deg, rgba(30, 144, 255, 0.08), rgba(65, 105, 225, 0.05));
    border-color: rgba(30, 144, 255, 0.25);
    transform: translateX(4px);
}

.admin-form-group label:not(.checkbox-label) {
    display: block;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.3px;
}

/* Enhanced Input Styling */
.admin-form-group input[type="number"],
.admin-form-group input[type="text"] {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(30, 144, 255, 0.2);
    border-radius: 10px;
    font-size: 14px;
    color: white;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
}

.admin-form-group input[type="number"]:focus,
.admin-form-group input[type="text"]:focus {
    outline: none;
    border-color: rgba(30, 144, 255, 0.6);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 4px rgba(30, 144, 255, 0.1), 0 4px 12px rgba(30, 144, 255, 0.2);
    transform: translateY(-2px);
}

.admin-form-group input[type="number"]::placeholder,
.admin-form-group input[type="text"]::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

/* Enhanced Select Styling */
.admin-form-group select {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(30, 144, 255, 0.2);
    border-radius: 10px;
    font-size: 14px;
    color: white;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%231e90ff' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
    padding-right: 45px;
}

.admin-form-group select:focus {
    outline: none;
    border-color: rgba(30, 144, 255, 0.6);
    background-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 4px rgba(30, 144, 255, 0.1), 0 4px 12px rgba(30, 144, 255, 0.2);
}

.admin-form-group select option {
    background: rgb(22, 33, 62);
    color: white;
    padding: 12px;
}

/* Enhanced Checkbox Container */
.checkbox-container {
    display: flex;
    align-items: center;
    position: relative;
    cursor: pointer;
    user-select: none;
    padding: 8px 0;
}

/* Custom Toggle Switch */
.checkbox-container input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkbox-container {
    padding-left: 70px;
    min-height: 32px;
    display: flex;
    align-items: center;
}

.checkbox-container::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 28px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.checkbox-container::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #9ca3af, #d1d5db);
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.checkbox-container input[type="checkbox"]:checked ~ ::before,
.checkbox-container:has(input[type="checkbox"]:checked)::before {
    background: linear-gradient(135deg, rgba(30, 144, 255, 0.8), rgba(65, 105, 225, 0.7));
    border-color: rgba(30, 144, 255, 0.6);
    box-shadow: 0 0 12px rgba(30, 144, 255, 0.4), inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.checkbox-container input[type="checkbox"]:checked ~ ::after,
.checkbox-container:has(input[type="checkbox"]:checked)::after {
    left: 32px;
    background: linear-gradient(135deg, #ffffff, #e5e7eb);
    box-shadow: 0 2px 8px rgba(30, 144, 255, 0.5);
}

.checkbox-container:hover::before {
    border-color: rgba(30, 144, 255, 0.4);
}

.checkbox-label {
    cursor: pointer;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0.2px;
    transition: color 0.3s ease;
}

.checkbox-container:hover .checkbox-label {
    color: rgba(255, 255, 255, 1);
}

/* Help Text Styling */
.admin-form-group p {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.55);
    margin-top: 10px;
    line-height: 1.5;
    padding-left: 4px;
}

/* Enhanced Accordion Styling */
.accordion-header {
    cursor: pointer;
    padding: 18px 20px;
    background: linear-gradient(135deg, rgba(30, 144, 255, 0.12), rgba(65, 105, 225, 0.08));
    border-radius: 12px;
    margin-bottom: 12px;
    border: 2px solid rgba(30, 144, 255, 0.25);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.accordion-header:hover {
    background: linear-gradient(135deg, rgba(30, 144, 255, 0.18), rgba(65, 105, 225, 0.12));
    border-color: rgba(30, 144, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 144, 255, 0.2);
}

.accordion-header span {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    font-size: 14px;
}

#accordionToggleIcon {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: rgba(30, 144, 255, 0.9);
    font-size: 16px;
    font-weight: bold;
}

.accordion-header.active #accordionToggleIcon {
    transform: rotate(180deg);
}

.accordion-content {
    padding: 24px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    border: 1px solid rgba(30, 144, 255, 0.15);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Standard action button */
.btn-add {
    background: linear-gradient(135deg, #1e90ff 0%, #4169e1 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(30, 144, 255, 0.3);
}

.btn-add:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(30, 144, 255, 0.4);
}

.btn-add:active {
    transform: translateY(0);
}

/* Secondary button style (silver/grey) */
.btn-secondary {
    background: linear-gradient(135deg, #4b5563, #6b7280);
    color: #e5e7eb;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #6b7280, #9ca3af);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.btn-secondary:active {
    transform: translateY(0);
}

/* Active category card highlight */
.category-card-active {
    border-width: 2px !important;
    box-shadow: 0 0 16px rgba(255, 255, 255, 0.15) !important;
    transform: translateY(-2px);
}

/* Outline primary button style */
.btn-outline-primary {
    background: transparent;
    color: #60a5fa;
    border: 1px solid #3b82f6;
    padding: 8px 16px !important;
    font-size: 12px;
    box-shadow: none;
}

.btn-outline-primary:hover {
    background: rgba(59, 130, 246, 0.15);
    color: #93bbfd;
    border-color: #60a5fa;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

/* Full-width save button - Chrome-style gradient */
.btn-save {
    background: linear-gradient(135deg, #9ca3af, #d1d5db, #e5e7eb) !important;
    color: #1e293b !important;
    border: none !important;
    padding: 16px 28px !important;
    border-radius: 12px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    letter-spacing: 1px !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.6) !important;
    position: relative !important;
    overflow: hidden !important;
}

.btn-save:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.7) !important;
    background: linear-gradient(135deg, #b0b7c3, #dfe3e8, #f0f2f5) !important;
}

.btn-save:active {
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25), inset 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

.btn-save::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 10px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231e293b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11l5 5v11a2 2 0 0 1-2 2z'/%3E%3Cpolyline points='17 21 17 13 7 13 7 21'/%3E%3Cpolyline points='7 3 7 8 15 8'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    vertical-align: middle;
}

/* Report icon styling - modern black outline */
.report-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
    color: #000;
}

.report-icon svg {
    stroke: #000;
    color: #000;
}

.get-excel-report-btn .report-icon svg,
.get-pdf-report-btn .report-icon svg {
    stroke: #000;
    color: #000;
}

/* Camp Date Picker Styling */
.camp-dropdown-wrapper {
    position: relative;
    width: 100%;
}

.camp-dropdown-wrapper .flatpickr-calendar {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    margin-top: 4px;
}

.camp-date-input {
    width: 100%;
    padding: 14px 20px;
    padding-right: 45px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    font-size: 14px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.camp-date-input:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.camp-date-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.camp-date-input.flatpickr-input + .camp-date-input,
input.camp-date-input.flatpickr-alt-input,
.camp-dropdown-wrapper .form-control.input {
    width: 100%;
    padding: 14px 20px;
    padding-right: 45px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    font-size: 14px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.camp-date-input:disabled,
.camp-dropdown-wrapper input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: rgba(255, 255, 255, 0.02);
}

.camp-dropdown-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    stroke: rgba(255, 255, 255, 0.6);
    color: rgba(255, 255, 255, 0.6);
}

/* Flatpickr styling for dropdown appearance */
.flatpickr-calendar {
    z-index: 999999 !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3) !important;
    background: linear-gradient(135deg, rgba(14, 29, 88, 0.98), rgba(20, 26, 114, 0.98)) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 12px !important;
}

.flatpickr-calendar.open {
    z-index: 999999 !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.flatpickr-innerContainer {
    background: transparent !important;
}

.flatpickr-months,
.flatpickr-days {
    background: transparent !important;
}

.flatpickr-day.selected {
    background: linear-gradient(135deg, #9ca3af, #d1d5db) !important;
    border-color: #d1d5db !important;
    color: #000 !important;
}

.flatpickr-day.today {
    border-color: rgba(255, 255, 255, 0.4) !important;
}

.flatpickr-day:hover {
    background: rgba(255, 255, 255, 0.1) !important;
}

/* Skill Builders Grid Layout */
.skill-builders-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

/* ========================================
   MODERN DATE PICKER STYLING
   ======================================== */

/* Modern date picker wrapper */
.modern-date-picker-wrapper {
    position: relative;
    width: 100%;
}

/* Modern date input styling */
.modern-date-input {
    width: 100% !important;
    padding: 12px 16px !important;
    border: 2px solid #e1e5eb !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    background: #ffffff !important;
    color: #1f2937 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    box-sizing: border-box !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

.modern-date-input:hover {
    border-color: #1e90ff !important;
    box-shadow: 0 0 0 3px rgba(30, 144, 255, 0.1) !important;
}

.modern-date-input:focus {
    outline: none !important;
    border-color: #1e90ff !important;
    box-shadow: 0 0 0 3px rgba(30, 144, 255, 0.2) !important;
}

/* Modern Date Picker Wrapper */
.modern-date-picker-wrapper {
    position: relative !important;
    display: inline-block;
    width: 100%;
}

/* Critical fix for Flatpickr positioning */
.flatpickr-calendar {
    position: absolute !important;
    z-index: 9999999 !important;
}

/* Ensure calendar appears above everything */
.flatpickr-calendar.open {
    z-index: 9999999 !important;
    position: absolute !important;
}

/* Fix calendar container positioning */
.flatpickr-calendar .flatpickr-months,
.flatpickr-calendar .flatpickr-innerContainer,
.flatpickr-calendar .flatpickr-rContainer,
.flatpickr-calendar .flatpickr-time {
    position: relative !important;
    z-index: inherit !important;
}

/* Modern Flatpickr calendar styling - matching Peak Learning theme */
.flatpickr-calendar {
    background: linear-gradient(135deg, rgba(30, 144, 255, 0.1), rgba(65, 105, 225, 0.05)) !important;
    backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(30, 144, 255, 0.2) !important;
    border-radius: 16px !important;
    box-shadow:
        0 20px 40px rgba(30, 144, 255, 0.15),
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
    z-index: 9999999 !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    overflow: visible !important;
    position: absolute !important;
}

.flatpickr-calendar.modern-calendar {
    animation: slideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Month navigation - modern blue theme */
.flatpickr-months {
    background: linear-gradient(135deg, rgba(30, 144, 255, 0.15), rgba(65, 105, 225, 0.1)) !important;
    border-bottom: 1px solid rgba(30, 144, 255, 0.2) !important;
    padding: 12px !important;
    backdrop-filter: blur(10px) !important;
}

.flatpickr-month,
.flatpickr-current-month {
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1) !important;
}

.flatpickr-current-month .numInputWrapper {
    display: inline-block !important;
    width: 7ch !important;
}

.flatpickr-current-month .numInputWrapper input.cur-year {
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    background: transparent !important;
    border: none !important;
    cursor: text !important;
    pointer-events: auto !important;
    -moz-appearance: textfield !important;
    appearance: textfield !important;
    padding: 0 !important;
}

.flatpickr-current-month .numInputWrapper input.cur-year:focus {
    outline: none !important;
    background: rgba(30, 144, 255, 0.2) !important;
    border-radius: 4px !important;
}

.flatpickr-current-month .numInputWrapper .arrowUp,
.flatpickr-current-month .numInputWrapper .arrowDown {
    display: block !important;
    opacity: 0.7 !important;
    cursor: pointer !important;
    pointer-events: auto !important;
    border: 0 !important;
    padding: 0 4px !important;
}

.flatpickr-current-month .numInputWrapper .arrowUp:hover,
.flatpickr-current-month .numInputWrapper .arrowDown:hover {
    opacity: 1 !important;
    background: rgba(30, 144, 255, 0.3) !important;
    border-radius: 4px !important;
}

.flatpickr-current-month .numInputWrapper .arrowUp::after {
    border-bottom-color: #ffffff !important;
}

.flatpickr-current-month .numInputWrapper .arrowDown::after {
    border-top-color: #ffffff !important;
}

.flatpickr-current-month select.flatpickr-monthDropdown-months {
    color: #ffffff !important;
    background: transparent !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    cursor: pointer !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    border: none !important;
}

.flatpickr-current-month select.flatpickr-monthDropdown-months option {
    background: #1a2366 !important;
    color: #ffffff !important;
}

.flatpickr-months .flatpickr-next-month,
.flatpickr-months .flatpickr-prev-month {
    color: rgba(255, 255, 255, 0.8) !important;
    fill: rgba(255, 255, 255, 0.8) !important;
    padding: 10px !important;
    border-radius: 12px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    background: rgba(30, 144, 255, 0.2) !important;
    backdrop-filter: blur(10px) !important;
}

.flatpickr-months .flatpickr-next-month:hover,
.flatpickr-months .flatpickr-prev-month:hover {
    color: #ffffff !important;
    background: linear-gradient(135deg, #1e90ff, #4169e1) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(30, 144, 255, 0.4) !important;
}

/* Weekday headers - elegant modern styling */
.flatpickr-weekdays {
    background: rgba(30, 144, 255, 0.05) !important;
    border-bottom: 1px solid rgba(30, 144, 255, 0.15) !important;
    backdrop-filter: blur(5px) !important;
    width: 100% !important;
    padding: 8px 4px !important;
}

.flatpickr-weekdaycontainer {
    display: flex !important;
    width: 100% !important;
}

.flatpickr-weekday {
    color: rgba(255, 255, 255, 0.7) !important;
    font-weight: 600 !important;
    font-size: 11px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    flex: 1 !important;
    text-align: center !important;
}

/* Day cells - compact modern design */
.flatpickr-days {
    background: transparent !important;
    padding: 4px !important;
}

.flatpickr-day {
    color: rgba(255, 255, 255, 0.9) !important;
    border-radius: 6px !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    width: 14.28% !important;
    max-width: 14.28% !important;
    height: 32px !important;
    line-height: 32px !important;
    margin: 0 !important;
    transition: all 0.2s ease !important;
    border: none !important;
    background: rgba(255, 255, 255, 0.05) !important;
    flex-basis: 14.28% !important;
    box-sizing: border-box !important;
}

.dayContainer {
    min-width: 100% !important;
    max-width: 100% !important;
    width: 100% !important;
    padding: 4px !important;
    display: flex !important;
    flex-wrap: wrap !important;
}

.flatpickr-day:hover {
    background: linear-gradient(135deg, rgba(30, 144, 255, 0.25), rgba(65, 105, 225, 0.2)) !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(30, 144, 255, 0.3) !important;
    border-color: rgba(30, 144, 255, 0.3) !important;
}

.flatpickr-day.today {
    background: linear-gradient(135deg, rgba(30, 144, 255, 0.3), rgba(65, 105, 225, 0.25)) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    border-color: rgba(30, 144, 255, 0.4) !important;
    box-shadow:
        0 0 20px rgba(30, 144, 255, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
}

.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange {
    background: linear-gradient(135deg, #1e90ff, #4169e1) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    border-color: rgba(30, 144, 255, 0.5) !important;
    box-shadow:
        0 4px 15px rgba(30, 144, 255, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
    transform: translateY(-1px) !important;
}

.flatpickr-day.selected:hover,
.flatpickr-day.startRange:hover,
.flatpickr-day.endRange:hover {
    background: linear-gradient(135deg, #1e40af, #3730a3) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(30, 144, 255, 0.5) !important;
}

.flatpickr-day.disabled {
    color: rgba(255, 255, 255, 0.3) !important;
    opacity: 0.4 !important;
    cursor: not-allowed !important;
    background: rgba(255, 255, 255, 0.02) !important;
}

.flatpickr-day.inRange {
    background: linear-gradient(135deg, rgba(30, 144, 255, 0.15), rgba(65, 105, 225, 0.1)) !important;
    border-color: rgba(30, 144, 255, 0.2) !important;
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Time picker - modern theme */
.flatpickr-time {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: center !important;
    background: linear-gradient(135deg, rgba(30, 144, 255, 0.1), rgba(65, 105, 225, 0.05)) !important;
    border-top: 1px solid rgba(30, 144, 255, 0.2) !important;
    padding: 12px 16px !important;
    backdrop-filter: blur(10px) !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
}

.flatpickr-time input {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(30, 144, 255, 0.3) !important;
    color: #ffffff !important;
    border-radius: 10px !important;
    padding: 8px 12px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    backdrop-filter: blur(5px) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.flatpickr-time input:focus {
    outline: none !important;
    border-color: #1e90ff !important;
    background: rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 0 20px rgba(30, 144, 255, 0.3) !important;
    transform: translateY(-1px) !important;
}

.flatpickr-time input:hover {
    background: rgba(255, 255, 255, 0.12) !important;
    border-color: rgba(30, 144, 255, 0.4) !important;
}

.flatpickr-time-separator {
    color: rgba(255, 255, 255, 0.6) !important;
    font-weight: 600 !important;
    font-size: 16px !important;
}

/* AM/PM Toggle styling */
.flatpickr-am-pm {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(30, 144, 255, 0.3) !important;
    color: #ffffff !important;
    border-radius: 8px !important;
    padding: 6px 12px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    backdrop-filter: blur(5px) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    cursor: pointer !important;
    outline: none !important;
}

.flatpickr-am-pm:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: rgba(30, 144, 255, 0.4) !important;
    transform: translateY(-1px) !important;
}

.flatpickr-am-pm:focus {
    outline: none !important;
    border-color: #1e90ff !important;
    background: rgba(255, 255, 255, 0.2) !important;
    box-shadow: 0 0 15px rgba(30, 144, 255, 0.3) !important;
}

/* Number inputs in time picker */
.flatpickr-time .numInputWrapper {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    height: 40px !important;
    flex-shrink: 0 !important;
}

.flatpickr-time .numInputWrapper:hover {
    background: rgba(255, 255, 255, 0.12) !important;
}

.flatpickr-time .numInputWrapper .arrowUp,
.flatpickr-time .numInputWrapper .arrowDown {
    background: rgba(30, 144, 255, 0.3) !important;
    color: #ffffff !important;
    display: none !important;
}

.flatpickr-time-separator {
    display: inline-flex !important;
    align-items: center !important;
    height: 40px !important;
    padding: 0 4px !important;
}

.flatpickr-am-pm {
    height: 40px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Ensure proper positioning in grid layouts */
.skill-builders-grid .modern-date-picker-wrapper {
    overflow: visible !important;
    position: relative !important;
}

/* Fallback datetime-local input styling */
.fallback-datetime-input {
    width: 100% !important;
    padding: 12px 16px !important;
    border: 2px solid #e1e5eb !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    background: #ffffff !important;
    color: #1f2937 !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    box-sizing: border-box !important;
}

.fallback-datetime-input:focus {
    outline: none !important;
    border-color: #1e90ff !important;
    box-shadow: 0 0 0 3px rgba(30, 144, 255, 0.2) !important;
}

/* Ensure containers don't clip calendar and maintain proper stacking */
.skill-builders-grid {
    overflow: visible !important;
    position: relative !important;
}

/* Make sure calendar appears above all content */
.flatpickr-calendar.open {
    z-index: 9999999 !important;
}

/* Ensure all nested calendar elements have proper stacking */
.flatpickr-calendar .flatpickr-months,
.flatpickr-calendar .flatpickr-innerContainer,
.flatpickr-calendar .flatpickr-rContainer,
.flatpickr-calendar .flatpickr-time,
.flatpickr-calendar .flatpickr-days {
    z-index: inherit !important;
}

/* Prevent modal and high-z-index elements from covering calendar */
.modal,
.modal-overlay,
.modal-backdrop {
    /* Ensure modals don't interfere with calendar when both are visible */
    z-index: 1000000 !important;
}

/* Fix scroll container issues - ensure calendars aren't clipped */
.settings-page,
.skill-builders-grid,
.form-section,
.admin-container {
    overflow: visible !important;
}

/* Alternative fixed positioning for problematic containers */
.modal .flatpickr-calendar,
.fixed-container .flatpickr-calendar {
    position: fixed !important;
    z-index: 9999999 !important;
}

/* Ensure calendar remains visible during scroll events */
.flatpickr-calendar.open {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Add visual indicator for active calendar */
.flatpickr-calendar.open::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    height: 10px;
    background: #3f4458;
    border: 1px solid rgba(30, 144, 255, 0.2);
    border-top: none;
    border-left: none;
    transform: translateX(-50%) rotate(45deg);
    z-index: 9999998 !important;
}

.settings-section {
    overflow: visible !important;
}

.skill-builders-grid {
    overflow: visible !important;
}

/* Responsive - Single column on tablets and mobile */
@media (max-width: 1024px) {
    .skill-builders-grid {
        grid-template-columns: 1fr;
    }
}

/* Responsive behavior */
@media (max-width: 1024px) {
    .settings-two-column {
        flex-direction: column;
    }

    .settings-right-column {
        flex: 1;
        width: 100%;
        max-width: 100%;
    }
    
    .admin-form-group:hover {
        transform: translateX(0);
    }
}

/* Email Template Editor Styles */
/* Email Template Gallery */
.template-gallery-grid {
    padding: 20px 30px 30px;
}

.template-category {
    margin-bottom: 30px;
}

.template-category:last-child {
    margin-bottom: 0;
}

.template-category-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.template-category-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.template-category-title {
    font-size: 18px;
    font-weight: 700;
    color: white;
    letter-spacing: 0.3px;
}

.template-category-count {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    margin-left: auto;
}

.template-cards-row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 14px;
}

.template-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 18px 20px;
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.template-card:hover {
    background: rgba(30, 144, 255, 0.08);
    border-color: rgba(30, 144, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.template-card-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    background: transparent;
}

.template-card-content {
    flex: 1;
    min-width: 0;
}

.template-card-name {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.template-card-description {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.4;
}

.template-card-arrow {
    color: rgba(255, 255, 255, 0.2);
    transition: all 0.25s ease;
    align-self: center;
}

.template-card:hover .template-card-arrow {
    color: rgba(30, 144, 255, 0.8);
    transform: translateX(3px);
}

.template-card .customized-badge {
    font-size: 9px;
    width: 14px;
    height: 14px;
}

.btn-ghost {
    background: transparent;
    color: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 0.25);
}

#editorTemplateName {
    font-size: 18px;
    margin: 0;
}

@media (max-width: 768px) {
    .template-cards-row {
        grid-template-columns: 1fr;
    }
}

.email-template-editor-container {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 20px;
    padding: 0 30px 30px;
}

.email-variables-panel {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
}

.email-variables-panel h3 {
    font-size: 14px;
    color: white;
    margin-bottom: 10px;
    font-weight: 600;
}

.email-editor-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.email-editor-section,
.email-preview-section {
    display: flex;
    flex-direction: column;
}

.email-editor-section h3,
.email-preview-section h3 {
    font-size: 14px;
    color: white;
    margin-bottom: 12px;
    font-weight: 600;
}

#emailTemplateEditor {
    display: none;
}

.email-preview-iframe-container {
    background: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 20px;
    min-height: 500px;
    overflow: auto;
}

.variable-tag {
    display: inline-block;
    background: rgba(30, 144, 255, 0.2);
    color: #60a5fa;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    margin: 4px 4px 4px 0;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid rgba(30, 144, 255, 0.3);
}

.variable-tag:hover {
    background: rgba(30, 144, 255, 0.3);
    transform: translateY(-1px);
}

.variable-tag:active {
    transform: translateY(0);
}

@media (max-width: 1400px) {
    .email-editor-main {
        grid-template-columns: 1fr;
    }
    
    .email-template-editor-container {
        grid-template-columns: 1fr;
    }
    
    .email-variables-panel {
        order: 2;
    }
}


/* Summernote modal z-index fixes */
.note-modal {
    z-index: 10500 !important;
    position: fixed !important;
}
.note-modal-backdrop {
    z-index: 10400 !important;
}
.note-modal .note-modal-content {
    pointer-events: auto !important;
    position: relative !important;
}
.note-modal .note-modal-content * {
    pointer-events: auto !important;
}
.note-popover {
    z-index: 10300 !important;
}
.note-image-dialog,
.note-link-dialog {
    z-index: 10500 !important;
}
.note-image-dialog .note-modal-content,
.note-link-dialog .note-modal-content {
    pointer-events: auto !important;
}
.note-image-dialog input,
.note-image-dialog button,
.note-link-dialog input,
.note-link-dialog button {
    pointer-events: auto !important;
    position: relative !important;
    z-index: 10501 !important;
}
/* Email Template Customization Styles */
.customized-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    font-size: 10px;
    font-weight: bold;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    margin-left: 6px;
    vertical-align: middle;
}

.customization-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-radius: 8px;
    margin: 0 20px 15px 20px;
    font-size: 14px;
}

.customization-banner.customized {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(5, 150, 105, 0.1) 100%);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #10b981;
}

.customization-banner.global {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(37, 99, 235, 0.1) 100%);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #60a5fa;
}

.customization-banner span {
    flex: 1;
}

.customization-banner .btn-sm {
    padding: 6px 12px;
    font-size: 12px;
    margin-left: 15px;
}

