/* =============================================================================
   Inline Styles Replacement CSS
   Generated to replace inline style="" attributes for CSP compliance
   ============================================================================= */

/* =============================================================================
   GLOBAL MOBILE FIXES - Prevent Horizontal Scrolling
   ============================================================================= */

html, body {
    overflow-x: hidden;
    max-width: 100vw;
}

@media (max-width: 900px) {
    /* Force all content to fit within viewport */
    html, body {
        overflow-x: hidden !important;
        max-width: 100vw !important;
    }
    
    * {
        max-width: 100%;
    }
    
    /* Override any min-width that causes overflow */
    .min-w-110, .min-w-120, .min-w-180, .min-w-200, .min-w-300 {
        min-width: 0 !important;
    }
    
    /* Force tables to be responsive */
    table {
        display: block;
        width: 100% !important;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Make all inputs full width */
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="number"],
    input[type="tel"],
    input[type="url"],
    input[type="date"],
    input[type="time"],
    input[type="datetime-local"],
    select,
    textarea {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* Force containers to be full width */
    .container {
        max-width: 100% !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
    
    /* Remove nowrap */
    .text-nowrap {
        white-space: normal !important;
    }
    
    /* Force all grids to single column */
    .d-grid,
    [class*="grid-cols"] {
        display: block !important;
    }
    
    .d-grid > *,
    [class*="grid-cols"] > * {
        width: 100% !important;
        margin-bottom: 0.75rem;
    }
    
    /* Force flex containers to wrap and stack */
    .d-flex:not(.align-items-center):not(.justify-between) {
        flex-wrap: wrap;
    }
    
    .d-flex.gap-2,
    .d-flex.gap-3,
    .d-flex.gap-4,
    .d-flex.gap-5 {
        flex-direction: column;
    }
    
    .d-flex.gap-2 > *,
    .d-flex.gap-3 > *,
    .d-flex.gap-4 > *,
    .d-flex.gap-5 > * {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    /* Hide on mobile utility */
    .d-none-mobile {
        display: none !important;
    }
    
    /* Show on mobile utility */
    .d-block-mobile {
        display: block !important;
    }
}

/* =============================================================================
   LAYOUT UTILITIES
   ============================================================================= */

/* Flexbox Layouts */
.d-flex { display: flex; }
.d-inline-flex { display: inline-flex; }
.d-grid { display: grid; }
.d-block { display: block; }
.d-inline-block { display: inline-block; }
.d-inline { display: inline; }
.d-none { display: none; }

.flex-wrap { flex-wrap: wrap; }
.flex-nowrap { flex-wrap: nowrap; }
.flex-column { flex-direction: column; }
.flex-row { flex-direction: row; }

.justify-start { justify-content: flex-start; }
.justify-end { justify-content: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-around { justify-content: space-around; }

.align-start { align-items: flex-start; }
.align-end { align-items: flex-end; }
.align-center { align-items: center; }
.align-stretch { align-items: stretch; }

.flex-1 { flex: 1; }
.flex-2 { flex: 2; }
.flex-grow-1 { flex-grow: 1; }
.flex-shrink-0 { flex-shrink: 0; }

/* Gap Utilities */
.gap-0 { gap: 0; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 1rem; }
.gap-4 { gap: 1.5rem; }
.gap-5 { gap: 2rem; }

/* Grid Layouts */
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
.grid-cols-5 { grid-template-columns: repeat(5, 1fr); }

/* =============================================================================
   SPACING UTILITIES
   ============================================================================= */

/* Margin */
.m-0 { margin: 0; }
.m-1 { margin: 0.25rem; }
.m-2 { margin: 0.5rem; }
.m-3 { margin: 1rem; }
.m-4 { margin: 1.5rem; }
.m-5 { margin: 2rem; }
.m-auto { margin: auto; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 2rem; }
.mt-6 { margin-top: 3rem; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 2rem; }

.ml-0 { margin-left: 0; }
.ml-1 { margin-left: 0.25rem; }
.ml-2 { margin-left: 0.5rem; }
.ml-3 { margin-left: 1rem; }
.ml-4 { margin-left: 1.5rem; }
.ml-auto { margin-left: auto; }

.mr-0 { margin-right: 0; }
.mr-1 { margin-right: 0.25rem; }
.mr-2 { margin-right: 0.5rem; }
.mr-3 { margin-right: 1rem; }
.mr-4 { margin-right: 1.5rem; }
.mr-auto { margin-right: auto; }

.mx-auto { margin-left: auto; margin-right: auto; }
.my-0 { margin-top: 0; margin-bottom: 0; }
.my-1 { margin-top: 0.25rem; margin-bottom: 0.25rem; }
.my-2 { margin-top: 0.5rem; margin-bottom: 0.5rem; }
.my-3 { margin-top: 1rem; margin-bottom: 1rem; }
.my-4 { margin-top: 1.5rem; margin-bottom: 1.5rem; }

/* Padding */
.p-0 { padding: 0; }
.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 1rem; }
.p-4 { padding: 1.5rem; }
.p-5 { padding: 2rem; }

.pt-0 { padding-top: 0; }
.pt-1 { padding-top: 0.25rem; }
.pt-2 { padding-top: 0.5rem; }
.pt-3 { padding-top: 1rem; }
.pt-4 { padding-top: 1.5rem; }
.pt-5 { padding-top: 2rem; }

.pb-0 { padding-bottom: 0; }
.pb-1 { padding-bottom: 0.25rem; }
.pb-2 { padding-bottom: 0.5rem; }
.pb-3 { padding-bottom: 1rem; }
.pb-4 { padding-bottom: 1.5rem; }
.pb-5 { padding-bottom: 2rem; }

.pl-0 { padding-left: 0; }
.pl-1 { padding-left: 0.25rem; }
.pl-2 { padding-left: 0.5rem; }
.pl-3 { padding-left: 1rem; }
.pl-4 { padding-left: 1.5rem; }

.pr-0 { padding-right: 0; }
.pr-1 { padding-right: 0.25rem; }
.pr-2 { padding-right: 0.5rem; }
.pr-3 { padding-right: 1rem; }
.pr-4 { padding-right: 1.5rem; }

.px-1 { padding-left: 0.25rem; padding-right: 0.25rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-3 { padding-left: 1rem; padding-right: 1rem; }
.px-4 { padding-left: 1.5rem; padding-right: 1.5rem; }

.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 1rem; padding-bottom: 1rem; }
.py-4 { padding-top: 1.5rem; padding-bottom: 1.5rem; }

/* =============================================================================
   TEXT UTILITIES
   ============================================================================= */

.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }

.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 2rem; }
.text-4xl { font-size: 2.5rem; }

.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

.text-nowrap { white-space: nowrap; }
.text-truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* =============================================================================
   COLOR UTILITIES
   ============================================================================= */

.text-white { color: #ffffff; }
.text-black { color: #000000; }
.text-gray { color: #6c757d; }
.text-dark { color: #1a2332; }
.text-light-gray { color: #999; }

.text-primary { color: var(--primary-color); }
.text-secondary { color: var(--secondary-color); }
.text-success { color: var(--success-color); }
.text-danger { color: var(--danger-color); }
.text-danger-dark { color: #721c24; }
.text-warning { color: var(--warning-color); }
.text-info { color: var(--info-color); }
.text-accent { color: var(--accent-color); }
.text-muted { color: var(--medium-gray); }

.bg-white { background-color: #ffffff; }
.bg-light { background-color: #f8f9fa; }
.bg-light-gray { background-color: var(--light-gray); }
.bg-dark { background-color: var(--dark-gray); }
.bg-transparent { background-color: transparent; }

.bg-primary { background-color: var(--primary-color); }
.bg-secondary { background-color: var(--secondary-color); }
.bg-success { background-color: var(--success-color); }
.bg-danger { background-color: var(--danger-color); }
.bg-warning { background-color: var(--warning-color); }
.bg-info { background-color: var(--info-color); }

.bg-success-light { background-color: #d4edda; }
.bg-danger-light { background-color: #f8d7da; }
.bg-warning-light { background-color: #fff3cd; }
.bg-info-light { background-color: #e3f2fd; }

/* =============================================================================
   BORDER UTILITIES
   ============================================================================= */

.border { border: 1px solid var(--border-color); }
.border-0 { border: none; }
.border-top { border-top: 1px solid var(--border-color); }
.border-bottom { border-bottom: 1px solid var(--border-color); }
.border-left { border-left: 1px solid var(--border-color); }
.border-right { border-right: 1px solid var(--border-color); }

.border-2 { border-width: 2px; }
.border-top-2 { border-top: 2px solid var(--border-color); }
.border-dashed { border-style: dashed; }

.border-primary { border-color: var(--primary-color); }
.border-secondary { border-color: var(--secondary-color); }
.border-success { border-color: var(--success-color); }
.border-danger { border-color: var(--danger-color); }
.border-warning { border-color: var(--warning-color); }
.border-transparent { border-color: transparent; }

.rounded { border-radius: 4px; }
.rounded-sm { border-radius: 2px; }
.rounded-lg { border-radius: 8px; }
.rounded-xl { border-radius: 12px; }
.rounded-full { border-radius: 9999px; }

/* =============================================================================
   SIZING UTILITIES
   ============================================================================= */

.w-25 { width: 25%; }
.w-50 { width: 50%; }
.w-75 { width: 75%; }
.w-100 { width: 100%; }
.w-auto { width: auto; }

.max-w-sm { max-width: 400px; }
.max-w-md { max-width: 600px; }
.max-w-lg { max-width: 800px; }
.max-w-xl { max-width: 1000px; }
.max-w-full { max-width: 100%; }

.h-100 { height: 100%; }
.h-auto { height: auto; }

.min-h-screen { min-height: 100vh; }

.min-w-110 { min-width: 110px; }
.min-w-120 { min-width: 120px; }
.min-w-180 { min-width: 180px; }
.min-w-200 { min-width: 200px; }
.min-w-300 { min-width: 300px; }

/* =============================================================================
   POSITION UTILITIES
   ============================================================================= */

.position-relative { position: relative; }
.position-absolute { position: absolute; }
.position-fixed { position: fixed; }
.position-sticky { position: sticky; }

.top-0 { top: 0; }
.right-0 { right: 0; }
.bottom-0 { bottom: 0; }
.left-0 { left: 0; }

/* =============================================================================
   VISIBILITY & OVERFLOW
   ============================================================================= */

.visible { visibility: visible; }
.invisible { visibility: hidden; }

.overflow-hidden { overflow: hidden; }
.overflow-auto { overflow: auto; }
.overflow-scroll { overflow: scroll; }
.overflow-x-auto { overflow-x: auto; }
.overflow-y-auto { overflow-y: auto; }

/* =============================================================================
   CURSOR UTILITIES
   ============================================================================= */

.cursor-pointer { cursor: pointer; }
.cursor-default { cursor: default; }
.cursor-not-allowed { cursor: not-allowed; }
.cursor-move { cursor: move; }

/* =============================================================================
   COMPONENT-SPECIFIC STYLES
   ============================================================================= */

/* Settings Page Specific */
.settings-footer-actions {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

/* Registration Success Footer */
.registration-footer {
    margin-top: 1.5rem;
    padding: 1rem;
    text-align: center;
    color: var(--medium-gray);
    font-size: 0.85rem;
    border-top: 1px solid var(--border-color);
}

/* 404 Page Specific */
.error-404-container {
    text-align: center;
    padding: 4rem 2rem;
    margin: 4rem auto;
    max-width: 600px;
}

.error-404-icon {
    font-size: 5rem;
    color: var(--medium-gray);
    margin-bottom: 2rem;
}

.error-404-title {
    color: var(--text-color);
    margin-bottom: 1rem;
}

.error-404-description {
    font-size: 1.1rem;
    color: var(--medium-gray);
    margin-bottom: 2rem;
}

.error-404-help-box {
    background-color: var(--light-gray);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.error-404-list {
    text-align: left;
    margin: 1rem 0;
    color: var(--medium-gray);
    list-style-position: inside;
}

/* Access Denied Page Specific */
.access-denied-card {
    text-align: center;
    padding: 4rem 2rem;
    margin: 4rem auto;
    max-width: 600px;
}

.favicon-preview {
    max-height: 32px;
}

.feature-editor-box {
    background: var(--light-gray);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.feature-editor-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1rem;
}

.course-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.location-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.location-name-full,
.location-address-full,
.location-notes-full {
    grid-column: span 2;
}

.color-input-full {
    width: 100%;
    height: 38px;
}

.toggle-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
}

.course-group-header {
    font-size: 0.9rem;
    color: var(--medium-gray);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Modal Base Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

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

.modal-content {
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    margin: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    background: var(--light-gray);
}

.modal-header h2,
.modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    color: var(--secondary-color);
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-color);
    background: var(--light-gray);
}

.close-btn,
.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--medium-gray);
    line-height: 1;
    padding: 0;
}

.close-btn:hover,
.modal-close:hover {
    color: var(--danger-color);
}

.modal-dialog {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.stats-grid-auto {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
}

/* Feature Lockout Box */
.feature-lockout-box {
    max-width: 600px;
    margin: 2rem auto;
    text-align: center;
}

.feature-lockout-inner {
    padding: 3rem;
    background: #f8f9fa;
    border-radius: 12px;
    border: 2px dashed #dee2e6;
}

/* Order Cards Specific Layouts */
.order-layout-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 1.5rem;
}

.progress-col {
    width: 100px;
}

.order-chevron {
    transition: transform 0.2s;
}

.past-order-item-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr auto;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    align-items: end;
}

/* Impersonation Banner */
.impersonation-banner {
    background: #fef3c7;
    border-bottom: 2px solid #f59e0b;
    padding: 0.75rem 1rem;
    text-align: center;
}

/* Stats Grid */
.stats-grid-5 {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    text-align: center;
}

.stats-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    text-align: center;
}

.stats-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    text-align: center;
}

.stats-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

/* Summary Box */
.summary-box {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
}

/* Action Button Row */
.action-button-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

/* Dashboard-specific layouts */
.dashboard-grid-2-1 {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
}

.trial-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--admin-border);
}

.trial-date-right {
    text-align: right;
}

/* Admin-specific colors */
.text-admin-gray {
    color: var(--admin-gray);
}

/* Font size utilities - additional */
.text-xxs {
    font-size: 0.7rem;
}

.text-0-8 {
    font-size: 0.8rem;
}

/* Filter Row */
.filter-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: flex-end;
    margin-bottom: 1rem;
}

/* Form Row */
.form-row {
    display: grid;
    gap: 1rem;
}

.form-row-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.form-row-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

/* Info Box */
.info-box {
    background: #e3f2fd;
    border-left: 4px solid var(--info-color);
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.warning-box {
    background: #fff3cd;
    border-left: 4px solid var(--warning-color);
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.success-box {
    background: #d4edda;
    border-left: 4px solid var(--success-color);
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.danger-box {
    background: #f8d7da;
    border-left: 4px solid var(--danger-color);
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

/* Selectable Card */
.selectable-card {
    border: 2px solid transparent;
    padding: 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.2s, background-color 0.2s;
}

.selectable-card:hover {
    border-color: var(--primary-color);
}

.selectable-card.selected {
    border-color: var(--primary-color);
    background-color: #e3f2fd;
}

/* Quantity Control */
.qty-control {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.qty-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background: white;
    cursor: pointer;
}

.qty-btn:hover {
    background: var(--light-gray);
}

/* Tab Navigation */
.tab-nav {
    display: flex;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 1rem;
}

.tab-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    background: none;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    font-weight: 500;
}

.tab-btn:hover {
    background: var(--light-gray);
}

.tab-btn.active {
    border-bottom-color: var(--primary-color);
    color: var(--primary-color);
}

.tab-content {
    display: none;
}

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

/* Modal Overlays & Content */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    overflow: auto;
    padding: 2rem;
    align-items: center;
    justify-content: center;
}

.modal-overlay.d-none {
    display: none !important;
}

.modal-overlay.d-flex {
    display: flex !important;
}

.modal-overlay-centered {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    padding: 1rem;
}

.modal-content-large {
    background: white;
    max-width: 700px;
    margin: 2rem auto;
    border-radius: 8px;
    max-height: calc(100vh - 8rem);
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.modal-content-medium {
    background: #fff;
    border-radius: 8px;
    max-width: 700px;
    width: 100%;
    margin: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.modal-header-sticky {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background: white;
    z-index: 1;
    border-radius: 8px 8px 0 0;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.modal-header-gradient {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    color: #fff;
    padding: 1rem 1.5rem;
    border-radius: 8px 8px 0 0;
}

.modal-close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: inherit;
}

.modal-close-btn:hover {
    opacity: 0.7;
}

/* Print-specific */
@media print {
    .no-print { display: none !important; }
    .print-only { display: block !important; }
}

.print-only { display: none; }

/* =============================================================================
   SUBSCRIPTION PAGE SPECIFIC STYLES
   ============================================================================= */

/* Subscription Small Text */
.subscription-small-text {
    font-size: 0.8rem;
    color: var(--admin-gray);
}

/* Subscription MRR Value */
.subscription-mrr-value {
    font-weight: 600;
    color: var(--admin-success);
}

/* Subscription Grid Layout */
.subscription-grid-2-1 {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
}

/* Subscription Feature List */
.subscription-feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Cancel/Reactivate Subscription Cards */
.subscription-cancel-card {
    border-color: var(--danger-color);
}

.subscription-cancel-header {
    background: rgba(220, 53, 69, 0.05);
}

.subscription-reactivate-card {
    border-color: var(--success-color);
}

.subscription-reactivate-header {
    background: rgba(40, 167, 69, 0.05);
}

/* Progress Fill for Success Color */
.progress-fill-success {
    background: var(--success-color);
    height: 100%;
    border-radius: 4px;
}

/* Responsive Subscription Grid */
@media (max-width: 992px) {
    .subscription-grid-2-1 {
        grid-template-columns: 1fr;
    }
}

/* =============================================================================
   BRANDING PAGE SPECIFIC STYLES
   ============================================================================= */

/* Branding Layout Grid */
.branding-layout-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

/* Branding Logo Preview */
.branding-logo-img {
    max-height: 60px;
    max-width: 150px;
}

/* Branding Color Picker */
.branding-color-picker {
    width: 50px;
    height: 40px;
    border: none;
}

.branding-color-text {
    font-family: monospace;
}

/* Branding Preview Frame */
.branding-preview-frame {
    border-radius: 0 0 6px 6px;
}

.branding-preview-logo {
    max-height: 50px;
    max-width: 120px;
}

.branding-preview-icon {
    font-size: 2.5rem;
    display: block;
}

.branding-preview-icon-sm {
    width: 14px;
}

.branding-preview-tagline {
    opacity: 0.9;
}

.branding-preview-badge {
    background: rgba(255,255,255,0.15);
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.7rem;
}

.branding-preview-label {
    color: #2c3e50;
}

.branding-preview-input {
    padding: 0.6rem;
    border: 2px solid #e0e6ed;
    border-radius: 6px;
    font-size: 0.9rem;
}

.branding-preview-button {
    padding: 0.7rem;
    border: none;
    border-radius: 6px;
}

.branding-preview-footer {
    background: #f5f7fa;
}

.branding-url-input {
    max-width: 400px;
    font-family: monospace;
}

/* Responsive - Branding */
@media (max-width: 992px) {
    .branding-layout-grid {
        grid-template-columns: 1fr;
    }
}

/* =============================================================================
   RESPONSIVE UTILITIES
   ============================================================================= */

@media (max-width: 768px) {
    .stats-grid-5,
    .stats-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-grid-3 {
        grid-template-columns: 1fr;
    }

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

    .filter-row {
        flex-direction: column;
        align-items: stretch;
    }

    .order-layout-grid {
        grid-template-columns: 1fr;
    }

    .past-order-item-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.25rem;
    }

    .d-md-none { display: none; }
    .d-md-block { display: block; }
    .d-md-flex { display: flex; }
}

@media (min-width: 769px) {
    .d-md-none { display: block; }
}

/* =============================================================================
   FINANCIAL REPORT SPECIFIC STYLES
   ============================================================================= */

/* Feature Lockout */
.feature-lockout-icon {
    font-size: 4rem;
    color: #6c757d;
    margin-bottom: 1.5rem;
    display: block;
}

/* Info Banner */
.info-banner {
    background: var(--light-gray);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: var(--medium-gray);
}

/* Stat Card Enhancements */
.stat-sublabel {
    font-size: 0.7rem;
    color: var(--medium-gray);
    margin-top: 0.25rem;
}

.text-info { color: var(--info-color); }
.icon-purple { color: #9b59b6; }
.icon-orange { color: #e67e22; }
.text-lg { font-size: 1rem; }

/* Profit Summary Card */
.profit-summary-card {
    color: white;
}

.profit-summary-card.profit-positive {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
}

.profit-summary-card.profit-negative {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
}

.profit-label {
    font-size: 0.85rem;
    opacity: 0.9;
}

.profit-value {
    font-size: 1.25rem;
    font-weight: bold;
}

.profit-label-lg {
    font-size: 0.9rem;
    opacity: 0.9;
}

.profit-value-lg {
    font-size: 1.5rem;
    font-weight: bold;
}

/* Date Filter Grid */
.date-filter-grid {
    display: grid;
    grid-template-columns: 1fr 1fr auto auto auto auto;
    gap: 1rem;
    align-items: end;
}

/* Report Grids */
.report-grid-2-1 {
    display: grid;
    grid-template-columns: 2fr 1fr;
}

/* Progress Bars */
.progress-cell {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.progress-bar-sm {
    background: #eee;
    border-radius: 4px;
    height: 8px;
    width: 60px;
}

.progress-bar-md {
    background: #eee;
    border-radius: 4px;
    height: 8px;
    width: 80px;
}

.progress-bar-full {
    background: #eee;
    border-radius: 4px;
    height: 8px;
    flex: 1;
}

.progress-fill-primary {
    background: var(--primary-color);
    height: 100%;
    border-radius: 4px;
}

.progress-fill-danger {
    background: var(--danger-color);
    height: 100%;
    border-radius: 4px;
}

.progress-percent {
    font-size: 0.75rem;
    color: var(--medium-gray);
    width: 40px;
}

/* Collection Summary */
.collection-circle-container {
    text-align: center;
    margin-bottom: 1.5rem;
}

.collection-circle {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 0 auto;
}

.circular-chart {
    transform: rotate(-90deg);
}

.circle-percentage {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.5rem;
    font-weight: bold;
}

.collection-stats {
    display: flex;
    justify-content: space-around;
    text-align: center;
}

.collection-stat-value {
    font-size: 1.25rem;
    font-weight: bold;
}

.collection-stat-label {
    font-size: 0.8rem;
    color: var(--medium-gray);
}

/* Top Item Row */
.top-item-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

/* Table Footer */
.table-footer-total {
    font-weight: bold;
    background: var(--light-gray);
}

/* Empty States */
.empty-state {
    text-align: center;
    color: var(--medium-gray);
    padding: 2rem;
}

.empty-state-success {
    text-align: center;
    color: var(--medium-gray);
    padding: 2rem;
}

.empty-state-icon {
    font-size: 3rem;
    color: var(--success-color);
    display: block;
    margin-bottom: 1rem;
}

.empty-state-icon-lg {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.5rem;
}

/* Outstanding Summary Card */
.outstanding-summary-card {
    background: linear-gradient(135deg, #f39c12 0%, #e74c3c 100%);
    color: white;
}

.outstanding-subtitle {
    margin: 0.5rem 0 0 0;
    opacity: 0.9;
}

.btn-export-white {
    background: rgba(255,255,255,0.2);
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    display: inline-block;
}

.btn-export-white:hover {
    background: rgba(255,255,255,0.3);
}

.row-overdue {
    background-color: #fff5f5;
}

/* Badge Size */
.badge-xs {
    font-size: 0.65rem;
}

/* Organization Badge (e.g., AHA, NAEMT) - more visible */
.badge-org {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.2em 0.5em;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-right: 0.35rem;
    vertical-align: middle;
    color: #fff;
    text-shadow: 0 1px 1px rgba(0,0,0,0.2);
    background-color: #c0392b; /* Default AHA red */
}

/* Extended filter grid for classes page */
.classes-filter-grid-extended {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    align-items: end;
}

@media (min-width: 1200px) {
    .classes-filter-grid-extended {
        grid-template-columns: 1fr 1fr 1fr 140px 140px auto;
    }
}

/* Sortable table headers */
.sortable {
    cursor: pointer;
    user-select: none;
}

.sort-link {
    color: inherit;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.sort-link:hover {
    color: var(--primary-color);
}

.sort-link i {
    font-size: 0.75rem;
}

/* Checkbox column */
.th-checkbox {
    width: 40px;
    text-align: center;
}

.th-checkbox input[type="checkbox"],
td input[type="checkbox"].class-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Bulk actions bar */
.bulk-actions-bar {
    background: var(--primary-color);
    color: #fff;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    animation: slideDown 0.2s ease-out;
}

.bulk-actions-bar .btn {
    border-color: rgba(255,255,255,0.3);
}

.bulk-actions-bar .btn-outline {
    color: #fff;
}

.bulk-actions-bar .btn-outline:hover {
    background: rgba(255,255,255,0.1);
}

.bulk-actions-bar .selected-count {
    font-size: 0.9rem;
}

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

/* Instructor Sales Grid */
.instructor-sales-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

.instructor-sale-card {
    background: var(--light-gray);
    padding: 1rem;
    border-radius: 8px;
}

.instructor-sale-amount {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--success-color);
}

/* Trend Value */
.trend-value {
    font-size: 2rem;
    font-weight: bold;
    margin: 0.5rem 0;
}

/* Future Row */
.row-future {
    opacity: 0.4;
}

/* =============================================================================
   EDIT CLASS PAGE SPECIFIC STYLES
   ============================================================================= */

/* Edit Class Main Grid */
.edit-class-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 1.5rem;
    align-items: start;
}

/* New Location Fields */
.new-location-fields {
    display: none;
    background: var(--light-gray);
    padding: 1rem;
    border-radius: 6px;
    border-left: 3px solid var(--accent-color);
}

.new-location-header {
    margin-bottom: 1rem;
    color: var(--accent-color);
}

/* Status Card */
.status-card-border {
    border-left: 4px solid;
}

.status-badge-lg {
    background: var(--primary-color);
    padding: 0.5rem 1rem;
    font-size: 1rem;
}

.status-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.stat-box {
    text-align: center;
    padding: 1rem;
    background: var(--light-gray);
    border-radius: 6px;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: bold;
}

.stat-value-primary {
    font-size: 1.75rem;
    font-weight: bold;
    color: var(--primary-color);
}

.stat-value-secondary {
    font-size: 1.75rem;
    font-weight: bold;
    color: var(--secondary-color);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--medium-gray);
}

/* Enrollment Progress */
.enrollment-progress {
    margin-top: 1rem;
}

.enrollment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.25rem;
}

.progress-bar-container {
    background: #eee;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    transition: width 0.3s;
}

/* Summary Card */
.summary-card {
    background: var(--light-gray);
}

.summary-preview {
    background: white;
    padding: 1rem;
    border-radius: 6px;
    border-left: 3px solid var(--primary-color);
}

.summary-section {
    margin-bottom: 1rem;
}

.summary-label {
    color: var(--medium-gray);
    font-size: 0.8rem;
}

.summary-value {
    color: var(--primary-color);
    font-weight: 500;
}

/* Quick Actions */
.quick-actions-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Danger Zone */
.danger-zone-card {
    border: 1px solid var(--danger-color);
}

.danger-zone-title {
    color: var(--danger-color);
}

.danger-zone-btn {
    color: var(--danger-color);
    border-color: var(--danger-color);
    width: 100%;
}

/* Class Fee Input */
.class-fee-wrapper {
    position: relative;
}

.class-fee-symbol {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--medium-gray);
}

.class-fee-input {
    padding-left: 25px;
}

/* Required Field Marker */
.text-danger {
    color: red;
}

/* Responsive - Edit Class */
@media (max-width: 992px) {
    .edit-class-grid {
        grid-template-columns: 1fr;
    }
}

/* =============================================================================
   CLASS DETAIL PAGE SPECIFIC STYLES
   ============================================================================= */

/* Badge Container */
.badge-container {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
}

/* Info Sub Text */
.info-subtext {
    font-size: 0.85rem;
    font-weight: normal;
    margin-top: 0.3rem;
    color: var(--medium-gray);
}

.info-email-link {
    font-size: 0.85rem;
    font-weight: normal;
    margin-top: 0.3rem;
}

.info-email-link a {
    color: var(--primary-color);
}

/* Class Notes Box */
.class-notes-box {
    margin-top: 0.75rem;
    padding: 0.6rem 0.8rem;
    background: var(--light-gray);
    border-radius: 4px;
    border-left: 2px solid var(--accent-color);
}

.class-notes-label {
    margin-bottom: 0.25rem;
    font-size: 0.7rem;
}

.class-notes-content {
    white-space: pre-wrap;
    color: var(--text-color);
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Registrations Header */
.registrations-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}

.registrations-title {
    margin: 0;
}

.registrations-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Payment Confirmation Box */
.payment-confirm-box {
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.payment-confirm-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 1rem;
}

.payment-confirm-status {
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

.payment-confirm-details {
    font-size: 0.85rem;
    margin-top: 0.5rem;
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.payment-confirm-actions {
    display: flex;
    gap: 0.5rem;
}

/* Empty State */
.registrations-empty {
    text-align: center;
    padding: 2rem;
    color: var(--medium-gray);
}

.registrations-empty-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Table Column Widths */
.col-width-130 {
    width: 130px;
}

.col-width-100 {
    width: 100px;
}

.col-width-90 {
    width: 90px;
}

.col-width-85 {
    width: 85px;
}

.col-width-70 {
    width: 70px;
}

.col-width-45 {
    width: 45px;
}

/* Input Sizes */
.input-width-80 {
    width: 80px;
}

.input-width-70 {
    width: 70px;
}

.checkbox-large {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Inline Forms */
.form-inline {
    display: inline;
}

.form-inline-mt {
    display: inline;
    margin-top: 0.25rem;
}

/* Payment Confirm Row */
.payment-confirm-row {
    display: flex;
    gap: 0.25rem;
    align-items: center;
}

/* Bulk Actions Footer */
.bulk-actions-footer {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    flex-wrap: wrap;
    justify-content: center;
}

/* Card Source Selector */
.card-source-selector {
    background: var(--light-gray);
    padding: 0.75rem 1rem;
    border-radius: 6px;
    border-left: 3px solid var(--primary-color);
}

.card-source-selector .form-label {
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.card-source-option {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.8rem;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.card-source-option:hover {
    border-color: var(--primary-color);
    background: #f0f7ff;
}

.card-source-option input[type="radio"] {
    margin: 0;
}

.card-source-option input[type="radio"]:checked + span {
    color: var(--primary-color);
    font-weight: 600;
}

.card-source-option:has(input[type="radio"]:checked) {
    border-color: var(--primary-color);
    background: #e3f2fd;
}

/* Button Padding Overrides */
.btn-xs-padding {
    padding: 0.1rem 0.3rem;
    font-size: 0.7rem;
}

/* Line Height */
.lh-1 {
    line-height: 1;
}

/* =============================================================================
   INVENTORY PAGE SPECIFIC STYLES
   ============================================================================= */

/* Inventory Page Layouts */
.inventory-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.inventory-grid-2col {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
}

.instructor-inventory-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 1.5rem;
}

.inventory-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.instructor-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

/* Feature Lockout - Inventory Style */
.feature-lockout-icon-inventory {
    font-size: 4rem;
    color: #6c757d;
    margin-bottom: 1.5rem;
    display: block;
}

/* Icon Sizes */
.icon-2xl {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.5rem;
}

.icon-4xl {
    font-size: 4rem;
}

.icon-5xl {
    font-size: 5rem;
    margin-bottom: 1.5rem;
}

/* Instructor Resources Specific */
.instructor-resources-container {
    text-align: center;
    padding: 4rem 2rem;
}

.instructor-resources-description {
    color: var(--medium-gray);
    margin: 1.5rem auto;
    max-width: 600px;
}

.instructor-resources-list {
    text-align: left;
    max-width: 500px;
    margin: 2rem auto;
    color: var(--text-color);
}

.instructor-interim-box {
    background: var(--info-light);
    padding: 1rem;
    border-radius: 6px;
    max-width: 600px;
    margin: 2rem auto;
    border-left: 4px solid var(--info-color);
}

.instructor-interim-text {
    margin: 0.5rem 0 0 0;
    color: var(--text-color);
}

.btn-small {
    font-size: 0.9rem;
}

/* Leadership Development & EVOC Training Specific */
.leadership-container {
    text-align: center;
    padding: 4rem 2rem;
}

.leadership-description {
    color: var(--medium-gray);
    margin: 1.5rem 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.leadership-list {
    text-align: left;
    max-width: 500px;
    margin: 2rem auto;
    color: var(--text-color);
}

.leadership-highlight-box {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 2rem;
    border-radius: 8px;
    max-width: 600px;
    margin: 2rem auto;
    color: white;
}

.evoc-warning-box {
    background: var(--warning-light);
    padding: 1rem;
    border-radius: 6px;
    max-width: 600px;
    margin: 2rem auto;
    border-left: 4px solid var(--warning-color);
}

.opacity-95 {
    opacity: 0.95;
}

/* Inventory Card Styles */
.inventory-card-label {
    font-size: 0.75rem;
}

.inventory-card-meta {
    font-size: 0.7rem;
    color: var(--medium-gray);
    margin-top: 0.25rem;
}

.inventory-card-low-stock {
    background-color: #fff5f5;
}

.low-stock-badge {
    color: var(--danger-color);
    font-weight: 600;
}

/* Inventory Item Row */
.inventory-item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.inventory-item-icon {
    color: inherit;
    width: 20px;
}

.inventory-total-row {
    display: flex;
    justify-content: space-between;
    padding-top: 0.75rem;
    font-weight: 600;
}

/* Instructor Card Header */
.instructor-card-header {
    background-color: var(--light-gray);
    padding: 0.75rem 1rem;
}

/* Modal Action Labels */
.modal-action-label {
    flex: 1;
    padding: 0.75rem;
    border: 2px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    text-align: center;
}

.modal-action-row {
    display: flex;
    gap: 1rem;
}

.modal-current-info {
    color: var(--medium-gray);
}

.modal-max-width-400 {
    max-width: 400px;
}

/* Info Box - Inventory Style */
.info-box-inventory {
    margin-top: 1rem;
    padding: 0.75rem;
    background-color: var(--light-gray);
    border-radius: 4px;
    font-size: 0.85rem;
}

/* Transfer History Cell */
.transfer-notes-cell {
    font-size: 0.85rem;
    color: var(--medium-gray);
}

/* Dynamic Border Top Color */
.border-top-3 {
    border-top: 3px solid;
}

/* Responsive - Inventory */
@media (max-width: 992px) {
    .inventory-grid-2col,
    .instructor-inventory-grid {
        grid-template-columns: 1fr;
    }
}

/* =============================================================================
   CREATE CLASS PAGE SPECIFIC STYLES
   ============================================================================= */

/* Limit Reached Warning */
.limit-warning-icon {
    color: #856404;
}

.limit-warning-text {
    color: #856404;
}

/* New Location Fields */
.new-location-box {
    border-left: 3px solid var(--accent-color);
}

/* Location Grid */
.location-grid-2-1-1 {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 0.5rem;
}

/* Pricing Guide */
.pricing-guide-box {
    background: linear-gradient(135deg, #e3f2fd 0%, #fff 100%);
    border-left: 4px solid var(--info-color);
}

/* Dollar Sign Position */
.dollar-sign-position {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
}

.input-pl-dollar {
    padding-left: 25px;
}

/* Summary Box Border */
.summary-box-border {
    border-left: 3px solid var(--primary-color);
}

/* Auto-fit Grid */
.grid-auto-fit-150 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

/* Table Utilities */
.table-collapse {
    border-collapse: collapse;
}

/* =============================================================================
   CLASS REPORT PAGE SPECIFIC STYLES
   ============================================================================= */

/* Date Filter Form */
.date-filter-form {
    display: flex;
    gap: 1rem;
    align-items: end;
    flex-wrap: wrap;
}

/* Date Range Info Banner */
.date-range-info {
    background: var(--light-gray);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

/* Dashboard Grid 4 columns */
.dashboard-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* Chart Container */
.chart-container {
    display: flex;
    gap: 0.5rem;
    align-items: flex-end;
    height: 200px;
    padding: 1rem 0;
}

.chart-container-sm {
    display: flex;
    gap: 0.5rem;
    align-items: flex-end;
    height: 120px;
}

/* Chart Bar Item */
.chart-bar-item {
    flex: 1;
    text-align: center;
}

.chart-bar-wrapper {
    height: 160px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
}

.chart-bar-wrapper-sm {
    height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
}

.chart-bar-value {
    font-size: 0.7rem;
    margin-bottom: 0.25rem;
}

.chart-bar {
    width: 80%;
    background: var(--primary-color);
    border-radius: 4px 4px 0 0;
    min-height: 5px;
}

.chart-bar-info {
    width: 100%;
    background: var(--info-color);
    border-radius: 4px 4px 0 0;
    min-height: 5px;
}

.chart-bar-label {
    font-size: 0.7rem;
    color: var(--medium-gray);
    margin-top: 0.5rem;
}

.chart-bar-label-sm {
    font-size: 0.7rem;
    color: var(--medium-gray);
    margin-top: 0.25rem;
}

/* Grid 2 Column Layout */
.grid-2-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Small Text with Color */
.text-small-muted {
    font-size: 0.85rem;
    color: var(--medium-gray);
}

/* Icon Colors (class-report specific extensions) */
.icon-primary { color: var(--primary-color); }
.icon-success { color: var(--success-color); }
.icon-info { color: var(--info-color); }
.icon-warning { color: var(--warning-color); }
.icon-danger { color: var(--danger-color); }
.icon-secondary { color: var(--secondary-color); }

/* =============================================================================
   USER MANAGEMENT PAGE SPECIFIC STYLES
   ============================================================================= */

/* Page Header */
.user-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.user-edit-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

/* User Edit Layout */
.user-edit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

/* User Certification Stats Grid */
.user-cert-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    text-align: center;
}

.user-cert-stat-value {
    font-size: 1.5rem;
    font-weight: bold;
}

.user-cert-stat-value-primary {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.user-cert-stat-value-success {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--success-color);
}

.user-cert-stat-value-warning {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--warning-color);
}

.user-cert-stat-value-danger {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--danger-color);
}

/* Certification Row */
.cert-row {
    display: flex;
    align-items: center;
    padding: 0.6rem 1rem;
    border-bottom: 1px solid var(--border-color);
    gap: 0.75rem;
}

.cert-row-expired {
    display: flex;
    align-items: center;
    padding: 0.6rem 1rem;
    border-bottom: 1px solid var(--border-color);
    gap: 0.75rem;
    background-color: #ffebee;
}

.cert-row-expiring {
    display: flex;
    align-items: center;
    padding: 0.6rem 1rem;
    border-bottom: 1px solid var(--border-color);
    gap: 0.75rem;
    background-color: #fff8e1;
}

.cert-icon {
    font-size: 1.1rem;
    width: 20px;
}

.cert-details {
    flex: 1;
    min-width: 0;
}

.cert-name {
    font-size: 0.9rem;
}

.cert-org {
    font-size: 0.75rem;
    margin-left: 0.25rem;
}

.cert-date-wrapper {
    text-align: right;
    font-size: 0.8rem;
    white-space: nowrap;
}

.cert-days-left {
    font-size: 0.7rem;
}

.cert-days-left-danger {
    font-size: 0.7rem;
    color: var(--danger-color);
}

.cert-days-left-warning {
    font-size: 0.7rem;
    color: var(--warning-color);
}

.cert-days-left-muted {
    font-size: 0.7rem;
    color: var(--medium-gray);
}

/* Certification Edit Form */
.cert-edit-form {
    display: none;
    padding: 1rem;
    background: #f8f9fa;
    border-bottom: 1px solid var(--border-color);
}

.cert-edit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.cert-edit-label {
    font-size: 0.75rem;
    margin-bottom: 0.2rem;
}

.cert-edit-input {
    padding: 0.3rem;
    font-size: 0.85rem;
}

.cert-edit-btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
}

.cert-toggle-btn {
    padding: 0.2rem 0.5rem;
    font-size: 0.75rem;
}

/* User Avatar Circle */
.user-avatar-circle {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* User Search Filter Grid */
.user-search-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr auto;
    gap: 1rem;
    align-items: end;
}

/* Non-instructor Info Box */
.non-instructor-info {
    text-align: center;
    padding: 3rem;
    color: var(--medium-gray);
}

.non-instructor-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: block;
}

/* Empty User List */
.empty-user-list {
    text-align: center;
    color: var(--medium-gray);
    padding: 3rem;
}

.empty-user-list-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
}

/* Empty Cert List */
.empty-cert-list {
    text-align: center;
    color: var(--medium-gray);
    padding: 1.5rem;
}

/* User Table Row States */
.user-row-inactive {
    opacity: 0.6;
}

/* Cert Badge List */
.cert-badge-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.cert-badge-sm {
    font-size: 0.7rem;
    padding: 0.2rem 0.4rem;
}

/* Stat Card Icon Colors */
.icon-info {
    color: var(--info-color);
}

.icon-success {
    color: var(--success-color);
}

.icon-primary {
    color: var(--primary-color);
}

.icon-warning {
    color: var(--warning-color);
}

/* Font Size */
.text-xs-sm {
    font-size: 0.85rem;
}

/* User Detail Row */
.user-detail-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Responsive Grid Adjustments */
@media (max-width: 768px) {
    .user-edit-grid {
        grid-template-columns: 1fr;
    }

    .user-cert-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .user-search-grid {
        grid-template-columns: 1fr;
    }

    .cert-edit-grid {
        grid-template-columns: 1fr;
    }
}

/* =============================================================================
   INVOICE PAGE SPECIFIC STYLES
   ============================================================================= */

/* Student Selection Scrollable Area */
.invoice-student-selection {
    max-height: 300px;
    overflow-y: auto;
}

/* =============================================================================
   PUBLIC SCHEDULE PAGE SPECIFIC STYLES
   ============================================================================= */

/* Welcome Message Box */
.welcome-message {
    line-height: 1.6;
}

/* Filter Field Sizes */
.filter-field {
    min-width: 150px;
}

.filter-input {
    padding: 0.4rem 0.5rem;
    font-size: 0.85rem;
}

/* Business Inquiry Card */
.inquiry-card {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 2px solid #16a34a;
}

.inquiry-content {
    min-width: 200px;
}

.inquiry-title {
    color: #16a34a;
    margin: 0;
}

.inquiry-text {
    color: #166534;
}

.inquiry-btn {
    background: #16a34a;
    color: white;
}

.inquiry-btn:hover {
    background: #15803d;
}

/* =============================================================================
   ROSTER EXPORT PAGE SPECIFIC STYLES
   ============================================================================= */

/* Roster Filter Grid */
.roster-filter-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr auto;
    gap: 1rem;
    align-items: end;
}

/* Roster Layout Grid */
.roster-layout-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 1.5rem;
}

/* Roster Class List */
.roster-class-list {
    padding: 0;
    max-height: 500px;
    overflow-y: auto;
}

/* Roster Class Item */
.roster-class-item {
    display: block;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color);
    text-decoration: none;
    color: inherit;
}

.roster-class-selected {
    background: var(--light-gray);
}

/* Roster Info Box */
.roster-info-box {
    background: var(--light-gray);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

/* Roster Empty State */
.roster-empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--medium-gray);
}

/* Roster Note Box */
.roster-note-box {
    margin-top: 1rem;
    padding: 1rem;
    background: #fff3cd;
    border-radius: 8px;
    font-size: 0.9rem;
}

/* Roster Row Inactive */
.roster-row-inactive {
    opacity: 0.5;
}

/* Roster Divider */
.roster-divider {
    margin: 10px 0;
    border-color: #ddd;
}

/* Roster Formats Grid */
.roster-formats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

/* Responsive - Roster Export */
@media (max-width: 992px) {
    .roster-layout-grid {
        grid-template-columns: 1fr;
    }

    .roster-filter-grid {
        grid-template-columns: 1fr 1fr;
    }

    .roster-formats-grid {
        grid-template-columns: 1fr;
    }
}

/* =============================================================================
   CHECKOUT PAGE SPECIFIC STYLES
   ============================================================================= */

/* Checkout Layout */
.checkout-layout-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 2rem;
    max-width: 1000px;
}

/* Billing Period Options */
.billing-period-option {
    display: block;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    text-decoration: none;
    text-align: center;
    background: var(--white);
    transition: border-color 0.2s, background 0.2s;
}

.billing-period-option:hover {
    border-color: var(--primary-color);
}

.billing-period-selected {
    border-color: var(--primary-color);
    background: rgba(33, 150, 243, 0.05);
}

.billing-period-badge {
    position: absolute;
    top: -10px;
    right: 10px;
    background: var(--success-color);
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Card Number Input */
.card-number-input {
    font-family: monospace;
}

/* Billing Address Heading */
.billing-address-heading {
    margin: 1.5rem 0 1rem;
    font-size: 1rem;
}

/* Order Summary Sticky */
.order-summary-sticky {
    position: sticky;
    top: 100px;
}

/* Coupon Remove Link */
.coupon-remove-link {
    color: var(--danger-color);
    font-size: 0.8rem;
    margin-left: 0.5rem;
}

/* Coupon Input */
.coupon-input {
    text-transform: uppercase;
}

/* Features List */
.features-heading {
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.85rem;
}

.feature-item {
    padding: 0.3rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.feature-check-icon {
    color: var(--success-color);
    font-size: 0.75rem;
}

/* Guarantees Box */
.guarantees-box {
    margin-top: 1.5rem;
    padding: 1rem;
    background: var(--light-gray);
    border-radius: 8px;
    font-size: 0.85rem;
}

/* Responsive - Checkout */
@media (max-width: 768px) {
    .checkout-layout-grid {
        grid-template-columns: 1fr;
    }
}

/* =============================================================================
   FINANCE DASHBOARD SPECIFIC STYLES
   ============================================================================= */

/* Finance Dashboard Chart Styles */
.finance-chart-bar-container {
    width: 100%;
    max-width: 60px;
}

.finance-chart-bar {
    width: 45%;
    border-radius: 4px 4px 0 0;
}

.finance-legend-box {
    width: 12px;
    height: 12px;
}

.finance-card-scroll {
    max-height: 350px;
}

.text-decoration-none {
    text-decoration: none;
}

/* =============================================================================
   ORGANIZATION DETAIL PAGE SPECIFIC STYLES
   ============================================================================= */

/* Organization Detail Table */
.org-detail-table {
    width: 100%;
}

.org-detail-label {
    padding: 0.5rem 0;
    color: var(--admin-gray);
}

.org-detail-label-width {
    width: 150px;
}

.org-detail-value {
    padding: 0.5rem 0;
}

/* Add User Form Container */
.add-user-form-container {
    display: none;
    padding: 1.5rem;
    background: #f8f9fa;
    border-bottom: 1px solid var(--admin-border);
}

/* Color Picker Input */
.color-picker {
    width: 60px;
    height: 35px;
    border: none;
    cursor: pointer;
}

/* Organization Actions Divider */
.org-actions-divider {
    margin: 1rem 0;
    border: none;
    border-top: 1px solid var(--admin-border);
}


/* =============================================================================
   INQUIRIES PAGE SPECIFIC STYLES
   ============================================================================= */

/* Inquiry Meta Text */
.inquiry-meta {
    opacity: 0.9;
}

/* Inquiry Form Row */
.inquiry-form-row {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 1rem;
}

/* Inquiry Stat Colors */
.inquiry-stat-new {
    color: #0d47a1;
}

.inquiry-stat-contacted {
    color: #0891b2;
}

.inquiry-stat-scheduled {
    color: #16a34a;
}

.inquiry-stat-completed {
    color: #6b7280;
}

/* =============================================================================
   HOME PAGE SPECIFIC STYLES
   ============================================================================= */

/* Section Headers */
.home-section-header {
    color: var(--secondary-color);
}

/* Info Section Gradients */
.info-section-blue-gradient {
    background: linear-gradient(135deg, #fff 0%, #e3f2fd 100%);
}

.info-section-orange-gradient {
    background: linear-gradient(135deg, #fff 0%, #fff3e0 100%);
}

.info-section-green-gradient {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 2px solid var(--success-color);
}

/* Text Colors */
.text-dark-gray {
    color: #555;
}

.text-gray-777 {
    color: #777;
}

.text-green-primary {
    color: #16a34a;
}

.text-green-dark {
    color: #166534;
}

/* Button Colors */
.btn-orange {
    background: #FF6F00;
}

.btn-green {
    background: #16a34a;
    color: white;
}

/* Link Underline */
.link-underline {
    text-decoration: underline;
}

/* Italic Text */
.text-italic {
    font-style: italic;
}

/* Line Height */
.lh-16 {
    line-height: 1.6;
}

/* Min Width */
.min-w-250 {
    min-width: 250px;
}

/* =============================================================================
   INSTRUCTOR CERTIFICATIONS PAGE SPECIFIC STYLES
   ============================================================================= */

/* Warning Card Border */
.card-border-warning-left {
    border-left: 4px solid var(--warning-color);
}

/* Badge Small with Margin */
.badge-xs-mr {
    font-size: 0.7rem;
    margin-right: 0.25rem;
}

/* Critical Warning Background */
.bg-critical-warning {
    background-color: #fff3e0;
}

/* Expired Certification Background */
.bg-cert-expired {
    background-color: #ffebee;
}

/* Expiring Soon Certification Background */
.bg-cert-expiring {
    background-color: #fff8e1;
}

/* =============================================================================
   PRICING PLANS PAGE SPECIFIC STYLES
   ============================================================================= */

/* Pricing Preview Cards */
.pricing-preview-card {
    border: 1px solid var(--admin-border);
    border-radius: 8px;
    overflow: hidden;
}

.pricing-preview-featured {
    border: 2px solid var(--admin-warning);
}

.pricing-preview-badge {
    background: var(--admin-warning);
    color: white;
    text-align: center;
    padding: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
}

.pricing-preview-header {
    padding: 1.5rem;
    text-align: center;
}

.pricing-preview-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--admin-primary);
}

.pricing-preview-period {
    font-size: 1rem;
    font-weight: 400;
    color: var(--admin-gray);
}

.pricing-preview-features {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.9rem;
}

.pricing-preview-feature {
    padding: 0.4rem 0;
}

/* =============================================================================
   INSTRUCTOR REPORT PAGE SPECIFIC STYLES
   ============================================================================= */

/* Filter Grid */
.instructor-report-filter-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr auto;
    gap: 1rem;
    align-items: end;
}

/* Header Card with Gradient */
.instructor-report-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
}

.instructor-report-subtitle {
    margin: 0.5rem 0 0 0;
    opacity: 0.9;
}

/* Main Grid Layout */
.instructor-report-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
}

/* Table Wrapper with Sticky Header */
.instructor-report-table-wrapper {
    overflow-x: auto;
    max-height: 500px;
}

.instructor-report-thead {
    position: sticky;
    top: 0;
    background: white;
}

/* Certification Row */
.instructor-cert-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

/* Responsive */
@media (max-width: 992px) {
    .instructor-report-filter-grid {
        grid-template-columns: 1fr;
    }

    .instructor-report-grid {
        grid-template-columns: 1fr;
    }
}

/* =============================================================================
   PLAN FEATURES PAGE SPECIFIC STYLES
   ============================================================================= */

/* Plan Features Layout Grid */
.plan-features-layout-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 0.75rem;
}

/* Plan List Body */
.plan-list-body {
    padding: 0;
    max-height: 400px;
    overflow-y: auto;
}

/* Plan List Item */
.plan-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.75rem;
    color: inherit;
    border-bottom: 1px solid var(--admin-border);
    transition: background-color 0.15s ease;
}

.plan-list-item:hover {
    background: var(--admin-light);
}

.plan-list-item-selected {
    background: var(--admin-light);
    border-left: 3px solid var(--admin-primary);
}

/* Plan Avatar */
.plan-avatar {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: linear-gradient(135deg, var(--admin-primary) 0%, #8b5cf6 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.plan-avatar-lg {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--admin-primary) 0%, #8b5cf6 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}

/* Plan Meta Text */
.plan-meta-text {
    font-size: 0.7rem;
    color: var(--admin-gray);
}

/* Plan Header Box */
.plan-header-box {
    margin-bottom: 0.75rem;
    padding: 0.75rem;
    background: var(--admin-light);
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* Plan Select Placeholder */
.plan-select-placeholder {
    text-align: center;
    color: var(--admin-gray);
    padding: 2rem 1rem;
    background: var(--admin-light);
    border-radius: 6px;
}

.plan-select-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: block;
    color: var(--admin-primary);
    opacity: 0.6;
}

/* Feature Category Header */
.feature-category-header {
    margin: 0 0 0.5rem;
    padding-bottom: 0.35rem;
    border-bottom: 1px solid var(--admin-border);
    color: var(--admin-gray);
    font-size: 0.8rem;
}

/* Feature Checkbox Label */
.feature-checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background: var(--admin-light);
    border-radius: 5px;
    font-size: 0.8rem;
}

/* Feature Description Text */
.feature-description-text {
    font-size: 0.7rem;
    color: var(--admin-gray);
}

/* Feature Limit Column */
.feature-limit-col {
    width: 80px;
}

/* Feature Limit Input */
.feature-limit-input {
    font-size: 0.75rem;
    text-align: center;
    padding: 0.25rem 0.35rem;
}

/* Feature Limit Label */
.feature-limit-label {
    font-size: 0.6rem;
    text-align: center;
    color: var(--admin-gray);
}

/* Matrix Category Row */
.matrix-category-row {
    background: var(--admin-light);
}

.matrix-category-cell {
    font-weight: 600;
    color: var(--admin-gray);
    font-size: 0.75rem;
}

/* Responsive - Plan Features */
@media (max-width: 992px) {
    .plan-features-layout-grid {
        grid-template-columns: 1fr;
    }
}

/* =============================================================================
   STUDENTS PAGE SPECIFIC STYLES
   ============================================================================= */

/* Students Filter Grid */
.students-filter-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr auto;
    gap: 1rem;
    align-items: end;
}

/* Sort Icon Inactive */
.sort-icon-inactive {
    opacity: 0.3;
}

/* Responsive - Students Filter */
@media (max-width: 1200px) {
    .students-filter-grid {
        grid-template-columns: 1fr 1fr !important;
    }
}

@media (max-width: 768px) {
    .students-filter-grid {
        grid-template-columns: 1fr !important;
    }
}

/* =============================================================================
   SYSTEM PAGE SPECIFIC STYLES
   ============================================================================= */

/* System Info Table Row */
.system-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--admin-border);
}

/* Monospace Text */
.font-mono {
    font-family: monospace;
}

.font-mono-sm {
    font-family: monospace;
    font-size: 0.85rem;
}

/* =============================================================================
   EXPORT PAGE SPECIFIC STYLES
   ============================================================================= */

/* Export Card Box */
.export-card-box {
    background: var(--admin-light);
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
}

/* Export Info Table */
.export-info-label {
    padding: 0.5rem 0;
    color: var(--admin-gray);
    width: 200px;
}

.export-info-value {
    padding: 0.5rem 0;
}

/* =============================================================================
   FEATURES PAGE SPECIFIC STYLES
   ============================================================================= */

/* Features Layout Grid */
.features-layout-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 0.75rem;
}

/* Organization List Scrollable */
.features-org-list-scroll {
    max-height: 400px;
    overflow-y: auto;
}

/* Organization Item */
.features-org-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.75rem;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid var(--admin-border);
    transition: background-color 0.15s ease;
}

.features-org-item:hover {
    background: var(--admin-light);
}

.features-org-item-selected {
    background: var(--admin-light);
    border-left: 3px solid var(--admin-primary);
}

/* Organization Avatar Large */
.org-avatar-lg {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--admin-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    flex-shrink: 0;
}

/* Organization Info Box */
.features-org-info-box {
    margin-bottom: 0.75rem;
    padding: 0.75rem;
    background: var(--admin-light);
    border-radius: 6px;
}

/* Features Select Placeholder */
.features-select-placeholder {
    text-align: center;
    color: var(--admin-gray);
    padding: 2rem 1rem;
    background: var(--admin-light);
    border-radius: 6px;
}

.features-select-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: block;
    color: var(--admin-primary);
    opacity: 0.6;
}

/* Category Header */
.features-category-header {
    margin: 0 0 0.5rem;
    padding-bottom: 0.35rem;
    border-bottom: 1px solid var(--admin-border);
    color: var(--admin-gray);
    font-size: 0.8rem;
}

/* Feature Item Row */
.features-item-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background: var(--admin-light);
    border-radius: 5px;
    font-size: 0.8rem;
}

.features-item-override {
    border-left: 3px solid var(--admin-warning);
}

/* Override Label */
.features-override-label {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    cursor: pointer;
    font-size: 0.7rem;
}

/* Override Checkbox */
.features-override-checkbox {
    width: 14px;
    height: 14px;
}

/* Status Column */
.features-status-col {
    text-align: center;
    min-width: 80px;
}

/* Override Controls */
.features-controls {
    align-items: center;
    gap: 0.5rem;
}

/* Limit Input */
.features-limit-input {
    width: 70px;
    font-size: 0.85rem;
    text-align: center;
}

/* Responsive - Features */
@media (max-width: 992px) {
    .features-layout-grid {
        grid-template-columns: 1fr;
    }
}

/* =============================================================================
   ANALYTICS PAGE SPECIFIC STYLES
   ============================================================================= */

/* Analytics Grid Layout */
.analytics-grid-2-1 {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
}

/* Analytics Stats Grid */
.analytics-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Analytics Stat Colors */
.analytics-stat-primary {
    color: var(--admin-primary);
}

.analytics-stat-success {
    color: var(--admin-success);
}

.analytics-stat-warning {
    color: var(--admin-warning);
}

.analytics-stat-info {
    color: var(--admin-info);
}

/* Responsive - Analytics */
@media (max-width: 992px) {
    .analytics-grid-2-1 {
        grid-template-columns: 1fr;
    }
}

/* =============================================================================
   CLASSES PAGE SPECIFIC STYLES
   ============================================================================= */

/* Classes Dropdown Menu */
.classes-dropdown-menu {
    position: absolute;
    right: 0;
    top: 100%;
    min-width: 180px;
    display: none;
    z-index: 1000;
}

/* Classes Filter Grid */
.classes-filter-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr auto;
    gap: 1rem;
    align-items: end;
}

/* Responsive - Classes Filter */
@media (max-width: 992px) {
    .classes-filter-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 576px) {
    .classes-filter-grid {
        grid-template-columns: 1fr;
    }
}

/* =============================================================================
   DELETE CONFIRMATION PAGE SPECIFIC STYLES
   ============================================================================= */

/* Centered Card Container */
.delete-confirm-card {
    max-width: 500px;
    margin: 2rem auto;
}

/* Danger Header */
.delete-confirm-header {
    background: var(--danger-color);
    color: white;
}

/* Content Padding */
.delete-confirm-body {
    padding: 2rem;
}

/* Large Text */
.delete-confirm-text-lg {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

/* Info Box */
.delete-info-box {
    background: var(--light-gray);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

/* Title Large */
.delete-info-title {
    font-size: 1.2rem;
}

/* Warning Text with Color */
.delete-warning-text {
    color: var(--danger-color);
    margin-top: 0.5rem;
    margin-bottom: 0;
}

/* Warning Message */
.delete-warning-message {
    color: var(--danger-color);
    font-weight: 500;
}

/* Action Buttons Row */
.delete-actions-row {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

/* =============================================================================
   ANNOUNCEMENTS PAGE SPECIFIC STYLES
   ============================================================================= */

/* Announcements Layout Grid */
.announcements-layout-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
}

/* Announcements Empty State */
.announcements-empty-state {
    padding: 2rem;
    text-align: center;
    color: var(--admin-gray);
}

/* Announcement Title */
.announcement-title {
    font-weight: 600;
}

/* Announcement Message Preview */
.announcement-message-preview {
    font-size: 0.8rem;
    color: var(--admin-gray);
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Announcement Period Text */
.announcement-period-text {
    font-size: 0.8rem;
}

/* Announcement Form Grid */
.announcement-form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

/* Announcement Checkbox Label */
.announcement-checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

/* Announcement Form Actions */
.announcement-form-actions {
    display: flex;
    gap: 0.5rem;
}

/* Responsive - Announcements */
@media (max-width: 992px) {
    .announcements-layout-grid {
        grid-template-columns: 1fr;
    }
}

/* =============================================================================
   CLASS INQUIRY PAGE SPECIFIC STYLES
   ============================================================================= */

/* Page Title */
.inquiry-page-title {
    text-align: center;
    margin-bottom: 0.25rem;
    font-size: 1.5rem;
}

/* Page Subtitle */
.inquiry-page-subtitle {
    text-align: center;
    color: var(--medium-gray);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

/* Centered Card Container */
.inquiry-centered-card {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    padding: 2rem;
}

/* Large Icon */
.inquiry-icon-lg {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Success Card */
.inquiry-success-card {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, #d4edda 0%, #fff 100%);
    border-left: 4px solid #28a745;
}

/* Success Icon */
.inquiry-success-icon {
    font-size: 3rem;
    color: #28a745;
    margin-bottom: 1rem;
}

/* Success Title */
.inquiry-success-title {
    color: #155724;
    margin: 0 0 1rem 0;
}

/* Success Message */
.inquiry-success-message {
    color: #155724;
    margin: 0 0 1.5rem 0;
}

/* Form Container */
.inquiry-form-container {
    max-width: 700px;
    margin: 0 auto 1rem auto;
}

/* Form Actions */
.inquiry-form-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

/* Submit Button */
.inquiry-submit-btn {
    flex: 1;
    min-width: 200px;
}

/* Contact Card */
.inquiry-contact-card {
    max-width: 700px;
    margin: 1.5rem auto 0 auto;
    background-color: var(--light-gray);
    padding: 1rem;
}

/* Contact Title */
.inquiry-contact-title {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

/* Contact Text */
.inquiry-contact-text {
    font-size: 0.85rem;
    margin: 0;
}

/* =============================================================================
   CLASS REGISTRATION PAGE SPECIFIC STYLES
   ============================================================================= */

/* Class Info Header */
.class-info-header {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Badge Container Row */
.badge-container-row {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

/* Location Details Box */
.location-details-box {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #ddd;
}

/* Error List */
.error-list {
    margin: 0.5rem 0 0 1.5rem;
}

/* What to Expect Box */
.what-to-expect-box {
    background: var(--light-gray);
    padding: 1rem;
    border-radius: 6px;
    margin: 1.5rem 0;
}

.what-to-expect-title {
    margin-bottom: 0.5rem;
}

.what-to-expect-list {
    margin: 0.5rem 0 0 1.5rem;
    line-height: 1.8;
}

/* Form Button Row */
.form-button-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Registration Footer */
.registration-footer {
    margin-top: 1.5rem;
    padding: 1rem;
    text-align: center;
    color: var(--medium-gray);
    font-size: 0.85rem;
    border-top: 1px solid var(--border-color);
}

/* Line Height Utilities */
.lh-18 {
    line-height: 1.8;
}



/* =============================================================================
   SETTINGS PAGE SPECIFIC STYLES
   ============================================================================= */

/* Settings Grid Layout */
.settings-grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

/* Feature Toggle Label */
.feature-toggle-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    padding: 0.75rem;
    background: var(--admin-light);
    border-radius: 6px;
}

/* Feature Toggle Title */
.feature-toggle-title {
    font-weight: 500;
}

/* Feature Toggle Description */
.feature-toggle-description {
    font-size: 0.8rem;
    color: var(--admin-gray);
}

/* Maintenance Mode Toggle (Danger Style) */
.feature-toggle-danger {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    padding: 0.75rem;
    background: rgba(239,68,68,0.1);
    border-radius: 6px;
    border: 1px solid rgba(239,68,68,0.2);
}

/* Maintenance Mode Title */
.feature-toggle-danger-title {
    font-weight: 500;
    color: var(--admin-danger);
}

/* Responsive - Settings Grid */
@media (max-width: 992px) {
    .settings-grid-2col {
        grid-template-columns: 1fr;
    }
}



/* =============================================================================
   SIGNUP PAGE SPECIFIC STYLES
   ============================================================================= */

/* Terms Checkbox Label */
.signup-terms-label {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
}

/* Terms Checkbox */
.signup-terms-checkbox {
    margin-top: 3px;
}

/* =============================================================================
   TWO-FACTOR VERIFY PAGE SPECIFIC STYLES
   ============================================================================= */

/* Two-Factor Code Input */
.totp-code-input {
    font-size: 1.5rem;
    text-align: center;
    letter-spacing: 8px;
    font-family: monospace;
}

/* Backup Code Input */
.backup-code-input {
    text-transform: uppercase;
    font-family: monospace;
    text-align: center;
    letter-spacing: 2px;
}

/* Two-Factor Divider */
.totp-divider {
    text-align: center;
    margin: 1.5rem 0;
    color: #6c757d;
}

/* Two-Factor Footer */
.totp-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #dee2e6;
}

/* Link Colors */
.link-primary {
    color: #007bff;
}

.link-gray {
    color: #6c757d;
}

/* =============================================================================
   IMPERSONATE PAGE SPECIFIC STYLES
   ============================================================================= */

/* User Selection Grid */
.user-select-grid {
    display: grid;
    gap: 0.75rem;
}

/* User Select Card */
.user-select-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--admin-light);
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s;
}

.user-select-card:hover {
    border-color: var(--admin-primary);
}

/* Avatar Size for Impersonate */
.avatar-45 {
    width: 45px;
    height: 45px;
}

/* =============================================================================
   COUPONS PAGE SPECIFIC STYLES
   ============================================================================= */

/* Coupons Layout Grid */
.coupons-layout-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
}

/* Coupon Code Badge */
.coupon-code-badge {
    background: var(--admin-light);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-weight: 600;
}

/* Coupon Form Grid */
.coupon-form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

/* Text Transform */
.text-uppercase {
    text-transform: uppercase;
}

/* Opacity Utilities */
.opacity-90 {
    opacity: 0.9;
}

/* Letter Spacing */
.tracking-wide {
    letter-spacing: 2px;
}

/* Two-Factor Verify Page */
.verify-footer-actions {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #dee2e6;
}

/* Responsive - Coupons */
@media (max-width: 992px) {
    .coupons-layout-grid {
        grid-template-columns: 1fr;
    }
}

/* =============================================================================
   REGISTRATION DETAILS PAGE SPECIFIC STYLES
   ============================================================================= */

/* Location Item - Full Width */
.registration-location-full {
    grid-column: 1 / -1;
}

/* Address Details */
.registration-address-details {
    font-size: 0.95rem;
    font-weight: normal;
    margin-top: 0.3rem;
    color: var(--text-color);
}

/* Registration Notes Box */
.registration-notes-box {
    padding: 1rem;
    background: var(--light-gray);
    border-radius: 6px;
    border-left: 3px solid var(--accent-color);
}

/* =============================================================================
   AUTHENTICATION PAGES (FORGOT PASSWORD, RESET PASSWORD, LOGIN)
   ============================================================================= */

/* Auth Card Container - used by forgot-password, reset-password pages */
.auth-card-container {
    max-width: 450px;
    margin: 4rem auto;
}

/* Note: .auth-card-header and .auth-card-body are defined in AUTH PAGES section below */

/* Auth Message Text */
.auth-message-text {
    color: var(--medium-gray);
    margin-bottom: 1.5rem;
    text-align: center;
}

/* Auth Footer Divider */
.auth-footer-divider {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

/* Auth Footer Link */
.auth-footer-link {
    color: var(--medium-gray);
}

/* =============================================================================
   SETUP WIZARD PAGE SPECIFIC STYLES
   ============================================================================= */

/* Wizard Footer with Negative Margins */
.wizard-footer-negative {
    margin: 1.5rem -1.5rem -1.5rem;
    padding: 1rem 1.5rem;
}

/* Max Width 120px */
.max-w-120 {
    max-width: 120px;
}

/* =============================================================================
   PRICING PAGE SPECIFIC STYLES (ADDITIONAL)
   ============================================================================= */

/* CTA Box */
.pricing-cta-box {
    text-align: center;
    padding: 3rem;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    border-radius: 12px;
    color: white;
    margin-top: 2rem;
}

.pricing-cta-btn {
    background: white;
    color: var(--secondary-color);
}

/* Opacity 0.9 */
.opacity-90 {
    opacity: 0.9;
}

/* =============================================================================
   CSS CUSTOM PROPERTY UTILITIES (For CSP Compliance - No unsafe-inline)
   These classes use CSS custom properties set via JavaScript from data attributes
   ============================================================================= */

/* Dynamic Color - Sets color from --dynamic-color custom property */
.dyn-color {
    color: var(--dynamic-color, inherit);
}

/* Dynamic Background Color */
.dyn-bg {
    background-color: var(--dynamic-bg, transparent);
}

/* Dynamic Background (for gradients) */
.dyn-background {
    background: var(--dynamic-background, transparent);
}

/* Dynamic Border Color */
.dyn-border {
    border-color: var(--dynamic-border, transparent);
}

/* Dynamic Border Left Color */
.dyn-border-left {
    border-left-color: var(--dynamic-border-left, transparent);
}

/* Dynamic Border Top Color */
.dyn-border-top {
    border-top-color: var(--dynamic-border-top, transparent);
}

/* Dynamic Width (for progress bars) */
.dyn-width {
    width: var(--dynamic-width, 0%);
}

/* Percentage width classes for progress bars (5% increments) */
.w-0 { width: 0%; }
.w-5 { width: 5%; }
.w-10 { width: 10%; }
.w-15 { width: 15%; }
.w-20 { width: 20%; }
.w-25 { width: 25%; }
.w-30 { width: 30%; }
.w-35 { width: 35%; }
.w-40 { width: 40%; }
.w-45 { width: 45%; }
.w-50 { width: 50%; }
.w-55 { width: 55%; }
.w-60 { width: 60%; }
.w-65 { width: 65%; }
.w-70 { width: 70%; }
.w-75 { width: 75%; }
.w-80 { width: 80%; }
.w-85 { width: 85%; }
.w-90 { width: 90%; }
.w-95 { width: 95%; }
.w-100 { width: 100%; }

/* Elements with data-progress attribute automatically get dynamic width */
[data-progress] {
    width: var(--dynamic-width, 0%);
}

/* Elements with data-style-width automatically get dynamic width */
[data-style-width] {
    width: var(--dynamic-width, auto);
}

/* Elements with data-style-color automatically get dynamic color */
[data-style-color] {
    color: var(--dynamic-color, inherit);
}

/* Elements with data-style-background automatically get dynamic background */
[data-style-background] {
    background-color: var(--dynamic-bg, transparent);
}

/* Dynamic Height (for chart bars) */
.dyn-height {
    height: var(--dynamic-height, 0px);
}

/* Dynamic Max Width */
.dyn-max-width {
    max-width: var(--dynamic-max-width, none);
}

/* Dynamic Display (for conditional visibility) */
.dyn-display-none {
    display: none;
}

.dyn-display-block {
    display: block;
}

.dyn-display-flex {
    display: flex;
}

/* Badge with dynamic background */
.badge-dynamic {
    background-color: var(--dynamic-bg, #6c757d);
    color: var(--dynamic-color, white);
}

/* Icon with dynamic color */
.icon-dynamic {
    color: var(--dynamic-color, #6c757d);
}

/* Card with dynamic border accent */
.card-dynamic-border {
    border-left: 4px solid var(--dynamic-border-left, transparent);
}

/* Stat card with dynamic border top */
.stat-card-dynamic {
    border-top: 3px solid var(--dynamic-border-top, transparent);
}

/* Progress bar fill with dynamic width */
.progress-fill-dynamic {
    width: var(--dynamic-width, 0%);
    background-color: var(--dynamic-bg, var(--primary-color));
    height: 100%;
    border-radius: inherit;
    transition: width 0.3s ease;
}

/* Chart bar with dynamic height */
.chart-bar-dynamic {
    height: var(--dynamic-height, 0px);
    background-color: var(--dynamic-bg, var(--primary-color));
    min-height: 5px;
}

/* Dynamic gradient background */
.gradient-dynamic {
    background: var(--dynamic-gradient, linear-gradient(135deg, var(--primary-color), var(--secondary-color)));
}

/* Trial Banner */
.trial-banner {
    padding: 0.75rem 1rem;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 990; /* Below navbar (1000) so dropdown menus work */
}

.trial-banner-link {
    color: inherit;
    font-weight: bold;
    margin-left: 1rem;
    text-decoration: underline;
}

/* Max Height Utilities for Scrollable Containers */
.max-h-300 {
    max-height: 300px;
}

.max-h-400 {
    max-height: 400px;
}

.max-h-500 {
    max-height: 500px;
}

/* Dropdown show state */
.dropdown-menu.show {
    display: block !important;
}

/* =============================================================================
   PAGE-SPECIFIC STYLES (CSP Compliance - Moved from inline <style> blocks)
   ============================================================================= */

/* =============================================================================
   AUTH PAGES (login, signup, select-organization)
   ============================================================================= */

.auth-container {
    max-width: 420px;
    margin: 2rem auto;
    padding: 1rem;
    min-height: 200px;
}

.auth-container.auth-container-wide {
    max-width: 520px;
}

.auth-card {
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.auth-card-header {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    color: var(--white);
    padding: 1.5rem;
    text-align: center;
}

.auth-card-header img {
    max-width: 160px;
    max-height: 60px;
    margin-bottom: 0.75rem;
}

.auth-card-header h2 {
    margin: 0 0 0.25rem;
    font-size: 1.3rem;
}

.auth-card-header p {
    margin: 0;
    opacity: 0.9;
    font-size: 0.9rem;
}

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

.auth-card-footer {
    padding: 1rem 1.5rem;
    background: var(--light-gray);
    border-top: 1px solid var(--border-color);
    text-align: center;
    font-size: 0.9rem;
}

.auth-card-footer p {
    margin: 0.25rem 0;
}

.org-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(255,255,255,0.15);
    padding: 0.3rem 0.6rem;
    border-radius: 15px;
    font-size: 0.75rem;
    margin-top: 0.5rem;
}

.trial-badge {
    display: inline-block;
    background: var(--accent-color);
    color: var(--white);
    padding: 0.3rem 0.6rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-top: 0.5rem;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.form-options label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
}

.form-section {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin: 1.25rem 0 0.75rem;
    padding-bottom: 0.4rem;
    border-bottom: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-section:first-of-type {
    margin-top: 0;
}

.form-section i {
    color: var(--accent-color);
}

.input-group {
    display: flex;
}

.input-group .form-control {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.input-group-text {
    background: var(--light-gray);
    border: 1px solid var(--border-color);
    border-left: none;
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
    color: var(--medium-gray);
    border-radius: 0 4px 4px 0;
    white-space: nowrap;
    display: flex;
    align-items: center;
}

.form-hint {
    font-size: 0.75rem;
    color: var(--medium-gray);
    margin-top: 0.25rem;
}

.form-hint strong {
    color: var(--primary-color);
}

.org-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
}

.org-list li {
    margin-bottom: 0.5rem;
}

.org-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--light-gray);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.2s;
}

.org-link:hover {
    border-color: var(--primary-color);
    background: #e3f2fd;
}

.org-link i {
    color: var(--primary-color);
}

.divider {
    display: flex;
    align-items: center;
    margin: 1rem 0;
    color: var(--medium-gray);
    font-size: 0.85rem;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.divider span {
    padding: 0 0.75rem;
}

.hint-text {
    text-align: center;
    color: var(--medium-gray);
    font-size: 0.85rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

/* =============================================================================
   TWO-FACTOR AUTH PAGES
   ============================================================================= */

.two-factor-container {
    max-width: 700px;
    margin: 0 auto;
}

.qr-code-container {
    text-align: center;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    margin: 1rem 0;
}

.qr-code-container img {
    border: 4px solid white;
    border-radius: 8px;
}

.secret-key {
    font-family: monospace;
    font-size: 1.1rem;
    letter-spacing: 2px;
    background: #e9ecef;
    padding: 0.75rem 1rem;
    border-radius: 4px;
    word-break: break-all;
    text-align: center;
}

.backup-codes {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    margin: 1rem 0;
}

.backup-code {
    font-family: monospace;
    font-size: 1rem;
    background: #f8f9fa;
    padding: 0.5rem;
    border-radius: 4px;
    text-align: center;
    border: 1px solid #dee2e6;
}

.status-badge-2fa {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 500;
}

.status-enabled {
    background: #d4edda;
    color: #155724;
}

.status-disabled {
    background: #f8d7da;
    color: #721c24;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    font-weight: bold;
    margin-right: 0.5rem;
}

.setup-step {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #dee2e6;
}

.verify-container {
    max-width: 450px;
    margin: 2rem auto;
}

.verify-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
    overflow: hidden;
}

.verify-header {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    color: white;
    padding: 1.5rem;
    text-align: center;
}

.verify-header i {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.verify-body {
    padding: 1.5rem;
}

.code-input {
    font-size: 1.75rem !important;
    text-align: center;
    letter-spacing: 10px;
    font-family: monospace;
}

.backup-toggle {
    text-align: center;
}

.backup-toggle a {
    color: var(--primary-color);
    text-decoration: none;
}

.backup-toggle a:hover {
    text-decoration: underline;
}

/* =============================================================================
   HOME PAGE
   ============================================================================= */

.hero-section {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    color: white;
    padding: 2.5rem 1.5rem;
    text-align: center;
    margin: -2rem -2rem 2rem -2rem;
    border-radius: 0 0 16px 16px;
}

.hero-title {
    font-size: 2.25rem;
    font-weight: bold;
    margin-bottom: 0.75rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    opacity: 0.95;
}

.hero-description {
    font-size: 1rem;
    max-width: 700px;
    margin: 0 auto 1.5rem;
    line-height: 1.5;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.btn-hero {
    padding: 0.75rem 1.75rem;
    font-size: 1rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
}

.btn-hero-primary {
    background: var(--accent-color);
    color: white;
}

.btn-hero-primary:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}

.btn-hero-secondary {
    background: white;
    color: var(--secondary-color);
}

.btn-hero-secondary:hover {
    background: #f5f5f5;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}

.features-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
    margin: 2rem 0;
}

.feature-card {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border-top: 3px solid var(--primary-color);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.12);
    border-top-color: var(--accent-color);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.feature-card:hover .feature-icon {
    color: var(--accent-color);
}

.feature-title {
    font-size: 1.15rem;
    font-weight: bold;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.feature-description {
    color: #6c757d;
    line-height: 1.5;
    font-size: 0.9rem;
}

.info-section {
    background: white;
    border-radius: 10px;
    padding: 1.75rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.info-section h2 {
    color: var(--secondary-color);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
}

.info-section h2 i {
    color: var(--primary-color);
}

.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.course-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid #e8ecf1;
}

.course-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.course-card-header {
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.course-card-header i {
    font-size: 1.75rem;
}

.course-card-header h3 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
}

.course-card-header.aha {
    background: linear-gradient(135deg, #c62828 0%, #e53935 100%);
    color: #ffffff;
}

.course-card-header.heartsaver {
    background: linear-gradient(135deg, #d84315 0%, #ff5722 100%);
    color: #ffffff;
}

.course-card-header.vfis {
    background: linear-gradient(135deg, #1565c0 0%, #1e88e5 100%);
    color: #ffffff;
}

.course-card-header.naemt {
    background: linear-gradient(135deg, #2e7d32 0%, #43a047 100%);
    color: #ffffff;
}

.course-card-header.other {
    background: linear-gradient(135deg, #5e35b1 0%, #7e57c2 100%);
    color: #ffffff;
}

.course-card-body {
    padding: 1.25rem 1.5rem;
}

.course-card-body ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.course-card-body ul li {
    padding: 0.6rem 0;
    padding-left: 1.75rem;
    position: relative;
    border-bottom: 1px solid #f0f2f5;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #444;
}

.course-card-body ul li:last-child {
    border-bottom: none;
}

.course-card-body ul li::before {
    content: '\f058';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: #4caf50;
    font-size: 0.9rem;
}

.course-card-body ul li strong {
    color: #1a237e;
    font-weight: 600;
}

.course-card-body ul li .course-code {
    color: #888;
    font-size: 0.85rem;
    font-weight: normal;
    margin-left: 0.25rem;
}

.course-card-body p.text-italic {
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px dashed #e0e0e0;
    font-style: italic;
    color: #666;
    font-size: 0.875rem;
}

.course-name {
    font-weight: 600;
    color: #0d47a1;
    margin-bottom: 0.25rem;
}

.course-duration {
    font-size: 0.85rem;
    color: #6c757d;
}

/* =============================================================================
   VIEW/DETAIL PAGES (class-detail, registration-details, view-class)
   ============================================================================= */

.view-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.view-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    cursor: pointer;
}

.dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1000;
    min-width: 160px;
}

.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
    display: block;
}

.form-select-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

.form-control-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

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

/* Compact info grid for class-detail page */
.info-grid-compact {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.6rem;
    margin-bottom: 1rem;
}

.info-grid-compact .info-item {
    background: var(--light-gray);
    padding: 0.6rem 0.8rem;
    border-radius: 4px;
    border-left: 2px solid var(--primary-color);
}

.info-grid-compact .info-label {
    font-size: 0.7rem;
    color: var(--medium-gray);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 0.15rem;
}

.info-grid-compact .info-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-color);
}

.info-grid-compact .info-value i {
    font-size: 0.85rem;
    margin-right: 0.3rem;
    color: var(--primary-color);
    width: 14px;
}

.info-grid-compact .info-subtext {
    font-size: 0.75rem;
    color: var(--medium-gray);
    margin-top: 0.15rem;
    line-height: 1.3;
}

.info-grid-compact .info-email-link {
    margin-top: 0.1rem;
}

.info-grid-compact .info-email-link a {
    font-size: 0.8rem;
}

/* Course Options Display */
.info-item-full {
    grid-column: 1 / -1;
}

.course-options-display {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

.course-option-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 0.25rem 0.5rem;
    font-size: 0.85rem;
    font-weight: 500;
}

.course-option-tag i {
    font-size: 0.75rem;
}

/* Compact card variant */
.card-compact {
    padding: 0.75rem;
    margin-bottom: 0.75rem;
}

.card-compact h3 {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    padding-bottom: 0.4rem;
}

.card-compact h3 i {
    font-size: 0.9rem;
}

.info-item {
    background: var(--light-gray);
    padding: 1rem;
    border-radius: 6px;
    border-left: 3px solid var(--primary-color);
}

.info-label {
    font-size: 0.85rem;
    color: var(--medium-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.3rem;
}

.info-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
}

.stat-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-cards .stat-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark, #1565C0) 100%);
    color: var(--white);
    padding: 1rem;
    border-radius: 6px;
    text-align: center;
}

.stat-cards .stat-card.secondary {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-light, #FFB74D) 100%);
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    line-height: 1;
}

/* Ensure stat-card text is readable on colored backgrounds */
.stat-cards .stat-card .stat-number {
    color: var(--white);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.stat-cards .stat-card .stat-label {
    color: var(--white);
    opacity: 0.95;
    font-size: 0.85rem;
    margin-top: 0.3rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
    font-weight: 500;
}

.stat-cards .stat-card.secondary .stat-number,
.stat-cards .stat-card.secondary .stat-label {
    color: #333;
    text-shadow: none;
}

.stat-label-detail {
    font-size: 0.85rem;
    opacity: 0.9;
    margin-top: 0.3rem;
}

/* =============================================================================
   SORTABLE TABLE (coordinator-dashboard)
   ============================================================================= */

.sortable-table th.sortable {
    cursor: pointer;
    user-select: none;
    position: relative;
    padding-right: 25px;
}

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

.sortable-table th.sortable .sort-icon {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.8rem;
    color: var(--medium-gray);
    opacity: 0.5;
}

.sortable-table th.sortable.asc .sort-icon,
.sortable-table th.sortable.desc .sort-icon {
    opacity: 1;
    color: var(--primary-color);
}

.sortable-table th.sortable.asc .sort-icon:before {
    content: "\f0de";
}

.sortable-table th.sortable.desc .sort-icon:before {
    content: "\f0dd";
}

/* =============================================================================
   CARD SALES PAGE
   ============================================================================= */

.card-sales-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

@media (max-width: 992px) {
    .card-sales-grid {
        grid-template-columns: 1fr;
    }
}

.inventory-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: var(--light-gray);
    border-radius: 6px;
    margin-bottom: 0.5rem;
}

.inventory-item .cert-name {
    font-weight: 600;
}

.inventory-item .quantity {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--primary-color);
}

.inventory-item .quantity.low {
    color: var(--warning-color);
}

.inventory-item .quantity.out {
    color: var(--danger-color);
}

.transfer-form {
    background: var(--light-gray);
    padding: 1.5rem;
    border-radius: 8px;
}

.instructor-inventory-group {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--light-gray);
    border-radius: 8px;
}

.instructor-inventory-group h4 {
    margin: 0 0 0.75rem 0;
    color: var(--primary-color);
}

.history-table {
    font-size: 0.9rem;
}

.history-table td,
.history-table th {
    padding: 0.5rem;
}

/* =============================================================================
   CLASS REGISTRATION PAGE
   ============================================================================= */

.registration-container {
    max-width: 800px;
    margin: 0 auto;
}

.class-info-card {
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.class-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    padding: 1.5rem;
}

.class-info-grid .info-item {
    background: transparent;
    padding: 0;
    border-left: none;
}

.class-info-grid .info-item i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

.status-available {
    background: #d4edda;
    color: #155724;
}

.status-limited {
    background: #fff3cd;
    color: #856404;
}

.status-full {
    background: #f8d7da;
    color: #721c24;
}

/* =============================================================================
   INQUIRY FORM PAGE
   ============================================================================= */

.inquiry-form {
    max-width: 700px;
    margin: 0 auto;
}

.form-row {
    display: flex;
    gap: 1rem;
}

.form-row .form-group {
    flex: 1;
}

.form-section-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin: 1.5rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
}

.form-section-title:first-of-type {
    margin-top: 0;
}

.hp-field {
    position: absolute;
    left: -9999px;
}

/* =============================================================================
   INQUIRIES LIST PAGE
   ============================================================================= */

.inquiry-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.inquiry-stats .stat-card {
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid transparent;
}

.inquiry-stats .stat-card:hover {
    transform: translateY(-2px);
}

.inquiry-stats .stat-card.active {
    border-color: var(--primary-color);
}

/* =============================================================================
   CLASSES LIST PAGE
   ============================================================================= */

.clickable-row:hover {
    background-color: rgba(33, 150, 243, 0.05);
    cursor: pointer;
}

.clickable-row td {
    vertical-align: middle;
}

/* =============================================================================
   CREATE CLASS PAGE
   ============================================================================= */

.two-col-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.full-width {
    grid-column: 1 / -1;
}

@media (max-width: 768px) {
    .two-col-layout {
        grid-template-columns: 1fr;
    }
}

/* =============================================================================
   CLASS REPORT PAGE
   ============================================================================= */

.grid-2-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

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

/* =============================================================================
   REGISTRATION SUCCESS PAGE
   ============================================================================= */

.success-container {
    max-width: 600px;
    margin: 2rem auto;
    text-align: center;
    padding: 2rem;
}

.success-icon {
    font-size: 5rem;
    color: var(--success-color);
    margin-bottom: 1.5rem;
    animation: scaleIn 0.5s ease-out;
}

.waitlist-icon {
    color: var(--warning-color);
}

@keyframes scaleIn {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); opacity: 1; }
}

/* =============================================================================
   ORDER CARDS PAGE
   ============================================================================= */

.order-cards-tabs .tabs {
    display: flex;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 1.5rem;
}

.order-cards-tabs .tab-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    background: none;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    font-weight: 500;
    transition: all 0.2s;
}

.order-cards-tabs .tab-btn:hover {
    background: var(--light-gray);
}

.order-cards-tabs .tab-btn.active {
    border-bottom-color: var(--primary-color);
    color: var(--primary-color);
}

/* =============================================================================
   PRICING PAGE
   ============================================================================= */

.pricing-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.pricing-header {
    text-align: center;
    margin-bottom: 2rem;
}

.pricing-header h1 {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.pricing-header p {
    color: var(--medium-gray);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Billing Toggle */
.billing-toggle {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.billing-toggle span {
    font-weight: 500;
    color: var(--medium-gray);
    transition: color 0.3s;
}

.billing-toggle span.active {
    color: var(--primary-color);
    font-weight: 600;
}

.toggle-switch {
    width: 50px;
    height: 26px;
    background: var(--border-color);
    border-radius: 13px;
    cursor: pointer;
    position: relative;
    transition: background 0.3s;
}

.toggle-switch::after {
    content: '';
    position: absolute;
    width: 22px;
    height: 22px;
    background: white;
    border-radius: 50%;
    top: 2px;
    left: 2px;
    transition: transform 0.3s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.toggle-switch.yearly {
    background: var(--primary-color);
}

.toggle-switch.yearly::after {
    transform: translateX(24px);
}

.save-badge {
    background: var(--success-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Pricing Grid */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* Pricing Card */
.pricing-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.pricing-card.popular {
    border: 2px solid var(--accent-color);
    transform: scale(1.02);
}

.pricing-card.popular:hover {
    transform: scale(1.02) translateY(-5px);
}

.pricing-card.current {
    border: 2px solid var(--success-color);
}

/* Badges */
.popular-badge,
.current-badge {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    text-align: center;
    padding: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: white;
}

.popular-badge {
    background: var(--accent-color);
}

.current-badge {
    background: var(--success-color);
}

/* Pricing Card Header */
.pricing-card-header {
    padding: 2rem 1.5rem 1.5rem;
    text-align: center;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    color: white;
}

.pricing-card.popular .pricing-card-header,
.pricing-card.current .pricing-card-header {
    padding-top: 3rem; /* Make room for badge */
}

.pricing-card-header h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.pricing-card-header .price {
    font-size: 3rem;
    font-weight: 700;
}

.pricing-card-header .price span {
    font-size: 1rem;
    font-weight: 400;
    opacity: 0.9;
}

.pricing-card-header .price-yearly {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 0.25rem;
}

/* Pricing Card Body */
.pricing-card-body {
    padding: 1.5rem;
    flex: 1;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pricing-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.95rem;
    color: var(--text-color);
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features li i {
    color: var(--success-color);
    margin-top: 0.2rem;
    flex-shrink: 0;
}

/* Pricing Card Footer */
.pricing-card-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.pricing-card-footer .btn {
    width: 100%;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
}

/* FAQ Section */
.pricing-faq {
    max-width: 800px;
    margin: 3rem auto;
}

.pricing-faq h2 {
    text-align: center;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.faq-item {
    background: white;
    border-radius: 8px;
    margin-bottom: 0.75rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    overflow: hidden;
}

.faq-question {
    padding: 1rem 1.5rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s;
}

.faq-question:hover {
    background: var(--light-gray);
}

.faq-question i {
    color: var(--primary-color);
    transition: transform 0.3s;
}

.faq-item.open .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s, padding 0.3s;
    color: var(--medium-gray);
    line-height: 1.6;
}

.faq-item.open .faq-answer {
    padding: 0 1.5rem 1rem;
    max-height: 200px;
}

/* Pricing CTA Box */
.pricing-cta-box {
    text-align: center;
    padding: 3rem;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    border-radius: 12px;
    color: white;
    margin-top: 2rem;
}

.pricing-cta-btn {
    background: white;
    color: var(--secondary-color);
    font-weight: 600;
}

.pricing-cta-btn:hover {
    background: var(--light-gray);
}

/* Responsive */
@media (max-width: 768px) {
    .pricing-header h1 {
        font-size: 1.75rem;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .pricing-card.popular {
        transform: none;
    }
    
    .pricing-card.popular:hover {
        transform: translateY(-5px);
    }
    
    .billing-toggle {
        flex-wrap: wrap;
    }
}

/* =============================================================================
   LEGAL PAGES (privacy, terms)
   ============================================================================= */

.legal-content {
    max-width: 800px;
    margin: 0 auto;
}

.legal-content .card {
    padding: 2rem;
}

.legal-content h1 {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.legal-content .last-updated {
    color: var(--medium-gray);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.legal-content h2 {
    color: var(--primary-color);
    font-size: 1.25rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--light-gray);
}

/* =============================================================================
   PUBLIC SCHEDULE PAGE
   ============================================================================= */

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

.schedule-table th {
    background: var(--light-gray);
    padding: 0.75rem;
    text-align: left;
    font-weight: 600;
}

.schedule-table td {
    padding: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.schedule-table tr:hover {
    background: rgba(33, 150, 243, 0.05);
}

/* =============================================================================
   SETTINGS PAGE
   ============================================================================= */

.settings-layout {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 1.5rem;
}

.settings-nav {
    background: var(--light-gray);
    border-radius: 8px;
    padding: 1rem;
}

.settings-nav a {
    display: block;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    text-decoration: none;
    color: var(--text-color);
    margin-bottom: 0.25rem;
    transition: all 0.2s;
}

.settings-nav a:hover {
    background: var(--white);
}

.settings-nav a.active {
    background: var(--primary-color);
    color: white;
}

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

    .settings-nav {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
        padding: 0.5rem;
    }

    .settings-nav a {
        margin-bottom: 0;
    }
}

/* =============================================================================
   SETUP WIZARD PAGE
   ============================================================================= */

.wizard-wrapper {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    padding: 2rem;
}

.wizard-container {
    max-width: 700px;
    margin: 0 auto;
}

.wizard-header {
    text-align: center;
    color: white;
    margin-bottom: 2rem;
}

.wizard-header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.wizard-header p {
    opacity: 0.9;
}

.steps-indicator {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.step-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
}

.step-dot.active {
    background: white;
}

.step-dot.completed {
    background: var(--accent-color);
}

/* =============================================================================
   STUDENTS PAGE
   ============================================================================= */

.sort-header {
    cursor: pointer;
    user-select: none;
}

.sort-header:hover {
    background: rgba(0,0,0,0.05);
}

.sort-header i {
    margin-left: 0.5rem;
    opacity: 0.5;
}

.sort-header.active i {
    opacity: 1;
    color: var(--primary-color);
}

/* =============================================================================
   RESPONSIVE OVERRIDES (from various pages)
   ============================================================================= */

@media (max-width: 600px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .auth-container {
        margin: 1rem auto;
    }

    .hero-section {
        padding: 1.5rem 1rem;
        margin: -1rem -1rem 1.5rem -1rem;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .view-header {
        flex-direction: column;
        align-items: stretch;
    }

    .view-actions {
        justify-content: flex-start;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .stat-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* ============================================
   Stats Section - Home Page
   ============================================ */
.stats-section {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin: 2rem 0;
}

.stats-section .stat-box {
    text-align: center;
    padding: 1.5rem 1rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.stats-section .stat-number {
    font-size: 2.5rem;
    color: var(--primary-color, #2196F3);
    margin-bottom: 0.5rem;
}

.stats-section .stat-label {
    font-size: 0.95rem;
    color: #555;
    font-weight: 500;
}

/* ============================================
   Two Column Layout - Home Page
   ============================================ */
.two-column {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

/* ============================================
   Responsive Adjustments
   ============================================ */
@media (max-width: 992px) {
    .stats-section {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .stats-section {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .two-column {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .stats-section {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   Contact Section Text Colors
   ============================================ */
.info-section-contact-gradient {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    color: #ffffff;
}

.info-section-contact-gradient * {
    color: inherit;
}

.info-section-contact-gradient h2,
.info-section-contact-gradient h2 i,
.info-section-contact-gradient p,
.info-section-contact-gradient strong,
.info-section-contact-gradient i,
.info-section-contact-gradient a {
    color: #ffffff;
}

.info-section-contact-gradient a:hover {
    color: #e0e0e0;
}

/* Course Cards Responsive */
@media (max-width: 768px) {
    .course-grid {
        grid-template-columns: 1fr;
    }
    
    .course-card-header {
        padding: 1rem 1.25rem;
    }
    
    .course-card-body {
        padding: 1rem 1.25rem;
    }
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
    .btn, nav, .navbar, footer, .view-actions, .no-print { 
        display: none !important; 
    }
    .card { 
        page-break-inside: avoid; 
        margin-bottom: 1rem; 
    }
    body { 
        background: white; 
    }
    .main-content { 
        padding: 0; 
    }
}

/* ============================================
   Utility Classes for CSP Compliance
   (Replacing inline style attributes)
   ============================================ */

/* Progress bar heights */
.progress-bar-thin {
    height: 6px;
}

.progress-bar-medium {
    height: 10px;
}

/* Grid layouts */
.grid-2-1 {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
}

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

/* Empty state styling */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-state-icon {
    color: var(--medium-gray);
    margin: 1.5rem 0;
}

/* Color preview (branding page) */
.color-preview-primary {
    color: var(--preview-primary);
}

/* Card header colors for warnings */
.card-header-warning {
    background-color: #fff3cd;
    color: #856404;
}

.card-header-danger {
    background-color: #f8d7da;
    color: #721c24;
}

.card-header-success {
    background-color: #d4edda;
    color: #155724;
}

.card-header-info {
    background-color: #d1ecf1;
    color: #0c5460;
}

/* ============================================
   Additional Utility Classes for CSP Compliance
   ============================================ */

/* Letter spacing for verification codes */
.letter-spaced {
    letter-spacing: 8px;
}

/* Card header variants */
.bg-danger-light {
    background-color: #f8d7da;
}

.text-danger-dark {
    color: #721c24;
}

/* Progress bars with CSS custom properties for dynamic widths */
.progress-fill {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    transition: width 0.3s ease;
}

/* Usage tracking progress bars */
.usage-progress {
    height: 6px;
    background: var(--light-gray);
    border-radius: 3px;
    overflow: hidden;
}

.usage-progress .progress-fill {
    width: var(--progress-width, 0%);
}

/* Branding preview colors */
.preview-primary-text {
    color: var(--preview-primary, var(--primary-color));
}

.preview-secondary-text {
    color: var(--preview-secondary, var(--secondary-color));
}

/* Required indicator */
.text-required {
    color: red;
}

/* Feature placeholder/empty state with large icon */
.feature-placeholder {
    text-align: center;
    padding: 4rem 2rem;
}

.feature-placeholder-icon {
    font-size: 5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.feature-placeholder-text {
    color: var(--medium-gray);
    margin: 1.5rem auto;
    max-width: 600px;
}

/* New location fields toggle */
.new-location-fields {
    display: none;
}

.new-location-fields.show {
    display: block;
}

/* Feature list styling */
.feature-list {
    text-align: left;
    max-width: 500px;
    margin: 2rem auto;
    color: var(--text-color);
}

.feature-list li {
    margin-bottom: 0.5rem;
}

/* Full width button */
.btn-full-width {
    width: 100%;
}

/* Auth footer powered by text */
.auth-footer-powered {
    margin-top: 0.75rem;
    font-size: 0.8rem;
    color: var(--medium-gray);
}

/* Impersonation banner */
.impersonation-banner {
    background: #fef3c7;
    border-bottom: 2px solid #f59e0b;
    padding: 0.75rem 1rem;
    text-align: center;
}

.impersonation-banner .btn {
    margin-left: 1rem;
}

/* =============================================================================
   SETTINGS PAGE STYLES (Additional)
   ============================================================================= */

/* Settings Section - flex child of settings-layout grid */
.settings-section {
    flex: 1;
    max-width: 800px;
}

/* Settings Header */
.settings-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.settings-header h2 {
    margin: 0 0 0.5rem;
    font-size: 1.5rem;
    color: var(--secondary-color);
}

.settings-header p {
    margin: 0;
    color: var(--medium-gray);
}

/* Settings Body */
.settings-body {
    background: var(--white);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Setting Row */
.setting-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
    gap: 2rem;
}

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

.setting-row > div:last-child {
    flex: 0 0 300px;
}

/* Setting Label */
.setting-label {
    flex: 1;
    font-weight: 500;
    color: var(--text-color);
}

.setting-label small {
    display: block;
    font-weight: normal;
    color: var(--medium-gray);
    margin-top: 0.25rem;
    font-size: 0.85rem;
}

/* Settings Group */
.settings-group {
    margin-bottom: 2rem;
}

.settings-group h3 {
    font-size: 1.1rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

/* Export Section */
.export-section {
    padding: 1rem;
    background: var(--light-gray);
    border-radius: 6px;
    margin-bottom: 1rem;
}

/* Color Input */
.color-input-wrapper {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.color-input-full {
    width: 50px;
    height: 38px;
    padding: 2px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    cursor: pointer;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .3s;
    border-radius: 26px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
    background-color: var(--success-color);
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(24px);
}

/* =============================================================================
   ORDER CARDS PAGE STYLES
   ============================================================================= */

/* Organization Section */
.org-section {
    margin-bottom: 1.5rem;
}

.org-header {
    font-weight: 600;
    font-size: 1rem;
    color: var(--secondary-color);
    padding: 0.75rem 1rem;
    background: var(--light-gray);
    border-radius: 6px 6px 0 0;
    border-bottom: 2px solid var(--primary-color);
}

/* Order Grid */
.order-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
    padding: 1rem;
    background: var(--white);
    border-radius: 0 0 6px 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Order Card */
.order-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    transition: all 0.2s;
}

.order-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.order-card-header {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.order-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    flex-shrink: 0;
    background: var(--dynamic-bg, var(--primary-color));
}

.order-card-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-color);
    line-height: 1.2;
}

.order-card-org {
    font-size: 0.8rem;
    color: var(--medium-gray);
}

.order-card-stock {
    font-size: 0.85rem;
    padding: 0.5rem;
    background: var(--light-gray);
    border-radius: 4px;
    margin-bottom: 0.75rem;
}

.order-card-stock.low {
    background: #fff3cd;
    color: #856404;
}

.order-card-stock.out {
    background: #f8d7da;
    color: #721c24;
}

/* Quantity Input */
.quantity-input {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.quantity-input button {
    width: 32px;
    height: 32px;
    border: 1px solid var(--border-color);
    background: var(--white);
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.quantity-input button:hover {
    background: var(--light-gray);
    border-color: var(--primary-color);
}

.quantity-input input {
    width: 60px;
    text-align: center;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 0.4rem;
    font-size: 1rem;
}

/* Order Summary */
.order-summary {
    position: sticky;
    top: 1rem;
}

/* Order Group Card (History) */
.order-group-card {
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-bottom: 1rem;
    overflow: hidden;
}

.order-group-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--light-gray);
    border-bottom: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: 0.5rem;
}

.order-group-body {
    padding: 1rem;
}

/* Order Items Table */
.order-items {
    width: 100%;
    margin-bottom: 1rem;
}

.order-items th,
.order-items td {
    padding: 0.5rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.order-items th {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--medium-gray);
}

/* Order Top Info */
.order-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.order-chevron {
    margin-left: auto;
    cursor: pointer;
    transition: transform 0.2s;
}

.order-secondary {
    font-size: 0.85rem;
    color: var(--medium-gray);
}

/* Stats Grid Auto */
.stats-grid-auto {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
}

.stat-box {
    background: var(--light-gray);
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
}

.stat-box .number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-box .label {
    font-size: 0.85rem;
    color: var(--medium-gray);
}

/* Responsive */
@media (max-width: 768px) {
    .setting-row {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .setting-row > div:last-child {
        flex: 1;
        width: 100%;
    }
    
    .order-grid {
        grid-template-columns: 1fr;
    }
    
    .order-group-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Course Settings Page Styles */
.course-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.course-info {
    flex: 1;
}

.course-info h4 {
    margin: 0 0 0.25rem;
    font-size: 1rem;
}

.course-info small {
    color: var(--medium-gray);
    font-size: 0.85rem;
}

.course-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

/* Location list item */
.location-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    margin-bottom: 0.5rem;
}

.location-item.inactive {
    opacity: 0.6;
    background: var(--light-gray);
}

.location-info h4 {
    margin: 0 0 0.25rem;
    font-size: 1rem;
}

.location-info small {
    color: var(--medium-gray);
}
/* =============================================================================
   SETTINGS PAGE REVAMP
   ============================================================================= */
/* Settings Page Revamped Styles */
.settings-container {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 0;
    min-height: calc(100vh - 180px);
    background: var(--bg-secondary, #f8f9fa);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    max-width: 100%;
    width: 100%;
}

.settings-sidebar {
    background: linear-gradient(180deg, #e8f4fc 0%, #f0f7ff 100%);
    border-right: 1px solid #d0e3f0;
    padding: 1.5rem 0;
}

.settings-sidebar .nav-section {
    padding: 0.5rem 1rem;
    margin-bottom: 0.5rem;
}

.settings-sidebar .nav-section-title {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #64748b;
    padding: 0.5rem 1rem;
    margin: 0;
    font-weight: 600;
}

.settings-sidebar a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 1.25rem;
    color: #475569;
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.settings-sidebar a:hover {
    background: rgba(33, 150, 243, 0.1);
    color: #1976D2;
}

.settings-sidebar a.active {
    background: rgba(33, 150, 243, 0.15);
    color: #1976D2;
    border-left-color: #2196F3;
    font-weight: 500;
}

.settings-sidebar a i {
    width: 18px;
    text-align: center;
    font-size: 0.9rem;
    color: #2196F3;
}

.settings-main {
    padding: 2rem;
    background: #fff;
    overflow-y: auto;
    overflow-x: hidden;
    max-width: 100%;
}

.settings-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.settings-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.settings-header h2 i {
    color: var(--primary, #3b82f6);
}

.settings-header p {
    color: #6b7280;
    margin: 0;
    font-size: 0.9rem;
}

/* Form Styles */
.form-section {
    background: #f9fafb;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-section-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin: 0 0 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-section-title i {
    color: #6b7280;
}

.form-row {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 1rem;
    align-items: start;
    padding: 0.875rem 0;
    border-bottom: 1px solid #e5e7eb;
}

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

.form-row label {
    font-weight: 500;
    color: #374151;
    font-size: 0.875rem;
    padding-top: 0.5rem;
}

.form-row label small {
    display: block;
    font-weight: 400;
    color: #9ca3af;
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

.form-row .form-control,
.form-row .form-select {
    max-width: 400px;
}

/* Course Types - Card Grid */
.course-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
}

.course-card-new {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    padding: 0.875rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.2s;
    position: relative;
}

.course-card-new:last-child {
    border-bottom: none;
}

.course-card-new:nth-child(even) {
    background: #f9fafb;
}

.course-card-new:hover {
    background: #f0f9ff !important;
}

.course-card-new.inactive {
    opacity: 0.6;
}

.course-icon-badge {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #fff;
    flex-shrink: 0;
}

.course-card-content {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.course-card-content h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 280px;
}

.course-card-content .course-code {
    font-size: 0.7rem;
    background: #f3f4f6;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    color: #6b7280;
    font-weight: 500;
}

.course-card-content .course-meta {
    font-size: 0.8rem;
    color: #9ca3af;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 0;
}

.course-card-actions {
    display: flex;
    gap: 0.35rem;
    opacity: 0;
    transition: opacity 0.2s;
    flex-shrink: 0;
}

.course-card-new:hover .course-card-actions {
    opacity: 1;
}

.course-card-actions .btn {
    padding: 0.35rem 0.5rem;
    font-size: 0.75rem;
}

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

.org-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid transparent;
    background: #f3f4f6;
    color: #6b7280;
}

.org-pill:hover {
    background: #e5e7eb;
}

.org-pill.active {
    background: var(--pill-active-bg, #3b82f6);
    color: #fff;
}

.org-pill .count {
    background: rgba(255,255,255,0.2);
    padding: 0.1rem 0.4rem;
    border-radius: 10px;
    font-size: 0.7rem;
}

/* Add Course Form */
.add-course-form {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 2px dashed #93c5fd;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.add-course-form h3 {
    margin: 0 0 1rem 0;
    font-size: 1rem;
    color: #1e40af;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.add-course-grid {
    display: grid;
    grid-template-columns: 1fr 100px 1fr 100px 80px 80px;
    gap: 0.75rem;
    align-items: end;
}

.add-course-grid .form-group {
    margin: 0;
}

.add-course-grid .form-label {
    font-size: 0.75rem;
    margin-bottom: 0.35rem;
    color: #4b5563;
}

/* Location Cards */
.location-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

.location-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 1.25rem;
    position: relative;
}

.location-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.location-card.inactive {
    opacity: 0.6;
    background: #f9fafb;
}

.location-card h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.location-card h4 i {
    color: var(--primary, #3b82f6);
}

.location-card .address {
    font-size: 0.85rem;
    color: #6b7280;
    line-height: 1.5;
}

.location-card-actions {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    gap: 0.35rem;
    opacity: 0;
    transition: opacity 0.2s;
}

.location-card:hover .location-card-actions {
    opacity: 1;
}

/* Stats Grid */
.stats-mini-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.stat-mini {
    background: #f9fafb;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
}

.stat-mini .value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
}

.stat-mini .label {
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 0.25rem;
}

/* Quick Actions */
.quick-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

/* Toggle Switch Improved */
.toggle-switch-new {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
}

.toggle-switch-new input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-switch-new .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #9ca3af;
    border: 2px solid #6b7280;
    border-radius: 28px;
    transition: 0.3s;
}

.toggle-switch-new .slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 2px;
    bottom: 2px;
    background: white;
    border-radius: 50%;
    transition: 0.3s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.toggle-switch-new input:checked + .slider {
    background: #22c55e;
    border-color: #16a34a;
}

.toggle-switch-new input:checked + .slider:before {
    transform: translateX(22px);
}

/* Color Input */
.color-picker-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.color-picker-wrapper input[type="color"] {
    width: 40px;
    height: 32px;
    padding: 0;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
}

/* Logo Preview */
.logo-preview-box {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 8px;
    margin-bottom: 0.75rem;
}

.logo-preview-box img {
    max-height: 50px;
    max-width: 200px;
}

.logo-preview-box.no-logo {
    color: #9ca3af;
    font-size: 0.875rem;
}

/* Mobile Responsive */
@media (max-width: 900px) {
    .settings-container {
        grid-template-columns: 1fr;
        display: block;
    }
    
    .settings-sidebar {
        display: flex;
        flex-wrap: wrap;
        padding: 0.75rem;
        gap: 0.5rem;
        background: linear-gradient(180deg, #e8f4fc 0%, #f0f7ff 100%);
        border-right: none;
        border-bottom: 1px solid #d0e3f0;
    }
    
    .settings-sidebar .nav-section-title {
        display: none;
    }
    
    .settings-sidebar a {
        padding: 0.5rem 0.75rem;
        border-radius: 6px;
        border-left: none;
        white-space: nowrap;
        font-size: 0.8rem;
        flex-shrink: 0;
        background: rgba(255,255,255,0.7);
        border: 1px solid #d0e3f0;
    }
    
    .settings-sidebar a.active {
        background: #2196F3;
        color: #fff;
        border-left: none;
        border-color: #1976D2;
    }
    
    .settings-sidebar a.active i {
        color: #fff;
    }
    
    .settings-main {
        padding: 1rem;
    }
    
    .settings-header h2 {
        font-size: 1.25rem;
    }
    
    .form-row {
        display: block;
    }
    
    .form-row label {
        display: block;
        padding-top: 0;
        margin-bottom: 0.5rem;
    }
    
    .form-row > div {
        width: 100%;
    }
    
    .form-row .form-control,
    .form-row .form-select,
    .form-row textarea {
        max-width: 100%;
        width: 100%;
    }
    
    .add-course-grid {
        display: block;
    }
    
    .add-course-grid .form-group {
        margin-bottom: 1rem;
    }
    
    .course-grid {
        display: block;
    }
    
    .course-card-new {
        display: block;
        padding: 1rem;
        margin-bottom: 0;
    }
    
    .course-icon-badge {
        display: inline-flex;
        margin-bottom: 0.75rem;
    }
    
    .course-card-content {
        display: block;
    }
    
    .course-card-content h4 {
        display: block;
        margin-bottom: 0.5rem;
    }
    
    .course-card-content .course-code {
        display: inline-block;
        margin-left: 0.5rem;
    }
    
    .course-card-content .course-meta {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
        margin-top: 0.5rem;
    }
    
    .course-card-actions {
        opacity: 1;
        margin-top: 0.75rem;
        padding-top: 0.75rem;
        border-top: 1px solid #e5e7eb;
        justify-content: flex-start;
    }
    
    .org-filter-pills {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .org-pill {
        flex-shrink: 0;
    }
    
    .location-grid {
        display: block;
    }
    
    .location-card {
        margin-bottom: 1rem;
    }
    
    .location-card-actions {
        opacity: 1;
    }
    
    .modal-overlay {
        padding: 1rem;
    }
    
    .modal-dialog {
        margin: 0 auto;
        max-width: 100% !important;
        width: 100% !important;
        max-height: calc(100vh - 2rem);
        overflow-y: auto;
    }
    
    .modal-dialog .d-flex.gap-3 {
        display: block;
    }
    
    .modal-dialog .d-flex.gap-3 .form-group {
        margin-bottom: 1rem;
        width: 100% !important;
    }
    
    .modal-dialog .form-group-w-100,
    .modal-dialog .form-group-w-80 {
        width: 100% !important;
    }
    
    .stats-mini-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .quick-actions {
        display: block;
    }
    
    .quick-actions .btn {
        display: block;
        width: 100%;
        margin-bottom: 0.5rem;
        text-align: center;
    }
    
    .d-flex.gap-2,
    .d-flex.gap-3 {
        display: block;
    }
    
    .d-flex.gap-2 > *,
    .d-flex.gap-3 > * {
        margin-bottom: 0.75rem;
        width: 100%;
    }
    
    .d-flex.gap-2 > *:last-child,
    .d-flex.gap-3 > *:last-child {
        margin-bottom: 0;
    }
    
    .d-grid {
        display: block !important;
    }
    
    .d-grid > * {
        margin-bottom: 1rem;
    }
    
    .grid-cols-2-3,
    .grid-cols-2-1-1-100 {
        display: block !important;
    }
    
    .form-group-w-100,
    .form-group-w-80 {
        width: 100% !important;
    }
    
    .max-w-120,
    .max-w-250,
    .max-w-500 {
        max-width: 100% !important;
    }
    
    .color-picker-wrapper {
        display: block;
    }
    
    .color-picker-wrapper input[type="color"] {
        width: 100%;
        height: 40px;
        margin-bottom: 0.5rem;
    }
    
    .color-picker-wrapper input[type="text"] {
        width: 100%;
        max-width: 100%;
    }
    
    .logo-preview-box {
        display: block;
    }
    
    .logo-preview-box img {
        max-width: 100%;
        margin-bottom: 0.75rem;
    }
    
    .logo-preview-box .btn {
        display: block;
        width: 100%;
    }
    
    form.d-flex {
        display: block !important;
    }
    
    form.d-flex > * {
        margin-bottom: 0.75rem;
        width: 100%;
    }
    
    form.d-flex input[type="file"] {
        max-width: 100% !important;
    }
    
    .d-none-mobile {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .settings-sidebar {
        padding: 0.5rem;
        gap: 0.35rem;
    }
    
    .settings-sidebar a {
        padding: 0.4rem 0.6rem;
        font-size: 0.75rem;
    }
    
    .settings-sidebar a i {
        display: none;
    }
    
    .settings-main {
        padding: 0.75rem;
    }
    
    .settings-header {
        margin-bottom: 1rem;
        padding-bottom: 1rem;
    }
    
    .settings-header h2 {
        font-size: 1.1rem;
    }
    
    .settings-header p {
        font-size: 0.8rem;
    }
    
    .form-section {
        padding: 0.75rem;
        margin-bottom: 1rem;
    }
    
    .form-section-title {
        font-size: 0.8rem;
    }
    
    .add-course-form {
        padding: 0.75rem;
    }
    
    .add-course-form h3 {
        font-size: 0.9rem;
    }
    
    .course-icon-badge {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
    
    .course-card-content h4 {
        font-size: 0.9rem;
    }
    
    .course-card-content .course-meta {
        font-size: 0.75rem;
    }
    
    .btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
    }
    
    .btn-sm {
        padding: 0.35rem 0.5rem;
        font-size: 0.75rem;
    }
    
    .stat-mini {
        padding: 0.5rem;
    }
    
    .stat-mini .value {
        font-size: 1.1rem;
    }
    
    .stat-mini .label {
        font-size: 0.65rem;
    }
    
    .toggle-switch-new {
        transform: scale(1);
    }
}

/* Animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.course-card-new, .location-card {
    animation: fadeIn 0.3s ease-out;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: #9ca3af;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state h3 {
    color: #6b7280;
    margin: 0 0 0.5rem 0;
}

/* Settings Page Utility Classes */
.max-w-120 { max-width: 120px; }
.max-w-250 { max-width: 250px; }
.max-w-500 { max-width: 500px; }
.text-uppercase { text-transform: uppercase; }
.cursor-pointer { cursor: pointer; }
.text-sm-muted { font-size: 0.85rem; color: #4b5563; }
.text-xs { font-size: 0.65rem; }
.font-italic { font-style: italic; }

.color-input-sm {
    height: 38px;
    padding: 2px;
}

.form-group-sm { width: 100px; }
.form-group-md { width: 80px; }

.add-location-form {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-color: #86efac;
}

.add-location-form h3 {
    color: #166534;
}

.grid-2-3 { grid-template-columns: 2fr 3fr; }
.grid-2-1-1-100 { grid-template-columns: 2fr 1fr 1fr 100px; }

.location-notes {
    margin-top: 0.5rem;
    font-style: italic;
    color: #9ca3af;
}

/* Settings Page Additional Utilities */
.form-group-w-100 { width: 100px; }
.form-group-w-80 { width: 80px; }
.grid-cols-2-3 { grid-template-columns: 2fr 3fr; }
.grid-cols-2-1-1-100 { grid-template-columns: 2fr 1fr 1fr 100px; }
.text-green-dark { color: #166534; }
.badge-xs { font-size: 0.65rem; }
.location-notes { margin-top: 0.5rem; font-style: italic; color: #9ca3af; }
.text-sm-85 { font-size: 0.85rem; }

/* Add Location Form styling */
.add-location-form {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%) !important;
    border-color: #86efac !important;
}

.add-location-form h3 {
    color: #166534 !important;
}

/* =============================================================================
   SETTINGS PAGE - CARD-BASED UI
   ============================================================================= */

/* Color input for forms */
.form-control-color {
    width: 50px;
    height: 38px;
    padding: 2px;
    border: 1px solid var(--border-color, #d1d5db);
    border-radius: 6px;
    cursor: pointer;
}

/* Course color dot */
.course-color-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* Row inactive state */
.row-inactive {
    opacity: 0.6;
    background: var(--light-gray, #f9fafb);
}

/* Stats grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 1rem;
}

.stat-box {
    text-align: center;
    padding: 1rem;
    background: var(--light-gray, #f9fafb);
    border-radius: 8px;
}

.stat-box .stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color, #2563eb);
}

.stat-box .stat-label {
    font-size: 0.75rem;
    color: var(--medium-gray, #6b7280);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Logo preview */
.logo-preview-img {
    max-height: 60px;
    max-width: 200px;
    object-fit: contain;
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 4px;
    padding: 4px;
    background: #fff;
}

/* Icon sizes */
.icon-4xl {
    font-size: 4rem;
    display: block;
}

/* Flex wrap on mobile */
.flex-wrap-mobile {
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .flex-wrap-mobile {
        flex-direction: column;
    }
    
    .flex-wrap-mobile > * {
        width: 100%;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stat-box {
        padding: 0.75rem;
    }
    
    .stat-box .stat-value {
        font-size: 1.25rem;
    }
}

/* Org filter pills in card header */
.card-header .org-filter-pills {
    margin: 0;
    gap: 0.35rem;
}

.card-header .org-pill {
    padding: 0.25rem 0.5rem;
    font-size: 0.7rem;
}

/* =============================================================================
   MOBILE HAMBURGER MENU
   ============================================================================= */

/* Hamburger button - hidden on desktop */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.hamburger-line {
    display: block;
    width: 24px;
    height: 3px;
    background-color: #fff;
    margin: 5px 0;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Hamburger animation when open */
.nav-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.nav-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Navigation Styles */
@media (max-width: 768px) {
    /* Show hamburger button */
    .nav-toggle {
        display: block;
        order: 3;
    }
    
    /* Navbar container - keep horizontal on mobile */
    .navbar .container {
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        justify-content: space-between;
        align-items: center;
    }
    
    /* Nav brand stays left */
    .nav-brand {
        order: 1;
    }
    
    /* User dropdown stays visible on right (before hamburger) */
    .nav-user {
        order: 2;
        margin-left: auto;
        margin-right: 0.5rem;
    }
    
    /* Hide nav menu by default on mobile */
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: linear-gradient(135deg, var(--secondary-color, #0d47a1) 0%, var(--primary-color, #2196F3) 100%);
        box-shadow: 0 4px 12px rgba(0,0,0,0.3);
        padding: 0;
        z-index: 1000;
        max-height: 70vh;
        overflow-y: auto;
        width: 100% !important;
    }
    
    /* Show nav menu when active */
    .nav-menu.active {
        display: block !important;
    }
    
    /* Stack menu items vertically */
    .nav-menu ul {
        flex-direction: column !important;
        gap: 0 !important;
        padding: 0.5rem 0;
        align-items: stretch !important;
    }
    
    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .nav-menu li:last-child {
        border-bottom: none;
    }
    
    .nav-menu > ul > li > a {
        display: flex !important;
        padding: 0.75rem 1rem !important;
        font-size: 0.9rem !important;
        justify-content: flex-start;
        align-items: center;
        gap: 0.5rem;
    }
    
    .nav-menu a i {
        width: 20px;
        text-align: center;
    }
    
    /* Mobile dropdown handling */
    .nav-menu .dropdown {
        position: relative;
    }
    
    .nav-menu .dropdown > a {
        justify-content: space-between !important;
    }
    
    .nav-menu .dropdown-menu {
        position: static !important;
        display: none;
        background: rgba(0,0,0,0.2) !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        border-top: none !important;
        padding: 0 !important;
        min-width: 100% !important;
    }
    
    .nav-menu .dropdown.active .dropdown-menu {
        display: block !important;
    }
    
    .nav-menu .dropdown-menu a {
        padding: 0.6rem 1rem 0.6rem 2.5rem !important;
        color: rgba(255,255,255,0.9) !important;
        font-size: 0.85rem !important;
    }
    
    .nav-menu .dropdown-menu a:hover {
        background: rgba(255,255,255,0.1) !important;
        color: #fff !important;
    }
    
    .nav-menu .dropdown-menu a i {
        color: rgba(255,255,255,0.7) !important;
    }
    
    /* User dropdown on mobile */
    .user-dropdown {
        position: relative;
    }
    
    .user-button {
        padding: 0.4rem 0.6rem !important;
        font-size: 0.8rem !important;
    }
    
    .user-dropdown-menu {
        right: 0;
        left: auto;
        min-width: 150px;
    }
}

/* Even smaller screens */
@media (max-width: 480px) {
    .nav-brand a {
        font-size: 0.85rem !important;
    }
    
    .nav-brand img,
    .header-logo {
        height: 20px !important;
        max-height: 20px !important;
    }
    
    .user-button span,
    .user-button .fa-caret-down {
        display: none;
    }
    
    .user-button .fa-user-circle {
        font-size: 1.25rem;
    }
    
    .nav-menu > ul > li > a {
        padding: 0.65rem 0.75rem !important;
        font-size: 0.85rem !important;
    }
}

/* =============================================================================
   COURSES VERTICAL LIST - Home Page
   ============================================================================= */

.courses-vertical-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.course-type-section {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.course-type-section:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.course-type-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    color: #fff;
    border: none;
}

.course-type-header.aha {
    background: linear-gradient(135deg, #C41E3A 0%, #e63950 100%);
}

.course-type-header.naemt {
    background: linear-gradient(135deg, #1E5AA8 0%, #2d7dd2 100%);
}

.course-type-header.vfis {
    background: linear-gradient(135deg, #28A745 0%, #34ce57 100%);
}

.course-type-header.phtls {
    background: linear-gradient(135deg, #6F42C1 0%, #8b5cf6 100%);
}

.course-type-header.pepp {
    background: linear-gradient(135deg, #FD7E14 0%, #ff9f43 100%);
}

.course-type-header.other {
    background: linear-gradient(135deg, #6c757d 0%, #868e96 100%);
}

.course-type-header i {
    font-size: 1.5rem;
    width: 32px;
    text-align: center;
    color: #fff;
    opacity: 0.9;
}

.course-type-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
}

.course-type-list {
    list-style: none;
    margin: 0;
    padding: 0.5rem 0;
}

.course-type-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 1.25rem;
    border-bottom: 1px solid #f1f5f9;
    color: #374151;
    font-size: 0.95rem;
    font-weight: 500;
}

.course-type-list li:last-child {
    border-bottom: none;
}

.course-type-list li i {
    font-size: 0.6rem;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
    color: #fff;
}

.course-type-list li:hover {
    background: #f8fafc;
}

/* Mobile - stack vertically */
@media (max-width: 768px) {
    .courses-vertical-list {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .course-type-header {
        padding: 0.85rem 1rem;
    }
    
    .course-type-header h3 {
        font-size: 1rem;
    }
    
    .course-type-list li {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
}

/* Eligibility notice styles - CSP compliant */
.eligibility-success {
    background-color: #e8f5e9;
    border-color: var(--success-color);
}

.eligibility-warning {
    background-color: #fff3cd;
    border-color: var(--warning-color);
}

/* Text muted for select options */
option.text-muted {
    color: #999;
}


/* CSP-compliant utility classes */
.cursor-pointer { cursor: pointer; }

/* Alert fade animation */
.alert-fade-out {
    opacity: 0;
    transition: opacity 0.5s;
}

/* Character counter styling */
.char-counter {
    text-align: right;
    font-size: 0.875rem;
    color: var(--medium-gray);
}

/* Modal body state */
.modal-body-open {
    overflow: hidden;
}

.modal-open {
    display: flex !important;
}

/* Also support showing modals via .show class */
.modal.show,
.modal.modal-open {
    display: flex !important;
}

/* Hover border effect via CSS variable */
.has-hover-border {
    transition: border-color 0.2s;
}
.has-hover-border:hover {
    border-color: var(--hover-border-color) !important;
}

/* Background color via CSS variable */
[data-bg-color] {
    background-color: var(--bg-color);
}


/* Navigation dropdown trigger styles */
.nav-dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.nav-caret {
    font-size: 0.8rem;
}


/* Impersonation banner */
.impersonation-banner {
    background: #fef3c7;
    border-bottom: 2px solid #f59e0b;
    padding: 0.75rem 1rem;
    text-align: center;
}

.impersonation-banner .btn {
    margin-left: 1rem;
}


/* AHA Roster-style Heartsaver Options */
.aha-roster-options {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 1rem;
}

.aha-course-row {
    margin-bottom: 0.5rem;
}

.aha-main-course {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    cursor: default;
}

.aha-course-name {
    font-size: 0.95rem;
}

.aha-suboptions-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 1rem;
    margin-left: 1.5rem;
    margin-top: 0.25rem;
}

.aha-suboption {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.875rem;
    color: #444;
    cursor: pointer;
    padding: 0.15rem 0;
}

.aha-suboption:hover {
    color: #000;
}

.aha-checkbox {
    width: 14px;
    height: 14px;
    cursor: pointer;
}

.aha-checkbox:disabled {
    cursor: default;
}

/* Checkbox styling (generic) */
.checkbox-group {
    display: flex;
    flex-direction: column;
}

.checkbox-label {
    cursor: pointer;
    padding: 0.25rem 0;
}

.checkbox-label:hover {
    background-color: rgba(0,0,0,0.03);
}

.form-checkbox {
    width: 1.1rem;
    height: 1.1rem;
    cursor: pointer;
}

/* Heartsaver options display for roster export */
.heartsaver-options-display {
    background: #f8f9fa;
    padding: 0.5rem;
    border-radius: 4px;
    margin-top: 0.5rem;
}

.hs-option-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    font-size: 0.85rem;
}

.hs-option-badge.checked {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.hs-option-badge.unchecked {
    background: #f8f9fa;
    color: #6c757d;
    border: 1px solid #dee2e6;
}

/* Print styles for roster */
@media print {
    .hs-option-badge.checked {
        background: #d4edda !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    
    .aha-roster-options {
        border: 1px solid #000;
    }
}

/* =============================================================================
   BULK REGISTRATION STYLES
   ============================================================================= */

.bulk-student-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1.5fr 1fr 1.5fr 40px;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    align-items: end;
}

.bulk-remove-btn {
    height: 38px;
    padding: 0;
    width: 38px;
}

@media (max-width: 992px) {
    .bulk-student-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 576px) {
    .bulk-student-grid {
        grid-template-columns: 1fr;
    }
}

/* =============================================================================
   ORDER CARDS STYLES
   ============================================================================= */

.order-summary-empty {
    color: var(--medium-gray);
    text-align: center;
    padding: 1rem;
}

.rotate-180 {
    transform: rotate(180deg);
}

.input-sm-right {
    width: 70px;
    text-align: right;
}

.input-md-right {
    width: 80px;
    text-align: right;
}

.receive-all-done {
    text-align: center;
    color: var(--medium-gray);
    padding: 1rem;
}

/* Invoices page styles */
.invoices-summary-card {
    width: 140px;
    min-width: 140px;
}

.input-width-120 {
    width: 120px;
}

.input-width-140 {
    width: 140px;
}

/* My Certifications page grid layouts */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}
@media (max-width: 768px) {
    .grid-2, .grid-3 {
        grid-template-columns: 1fr;
    }
}
.border-top {
    border-top: 1px solid #dee2e6;
}


/* Instructor Certification Preview Styles */
.cert-preview-box {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
}
.cert-preview-img {
    max-width: 200px;
    max-height: 150px;
    object-fit: contain;
    border: 1px solid #dee2e6;
    border-radius: 4px;
}
.cert-preview-pdf {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 100px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    color: #dc3545;
    text-decoration: none;
}
.cert-preview-pdf i {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}
.cert-preview-pdf span {
    font-size: 0.75rem;
    color: #6c757d;
}
.cert-preview-info {
    flex: 1;
}

/* Update List Styles */
.update-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.update-item {
    padding: 0.75rem;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 6px;
}
.update-item-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.update-item-header strong {
    flex: 1;
}
.update-preview-img {
    max-width: 150px;
    max-height: 100px;
    object-fit: contain;
    border: 1px solid #dee2e6;
    border-radius: 4px;
}
.update-preview-link {
    display: inline-block;
}

/* Cert Types Grid */
.cert-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}
.cert-type-card {
    padding: 1rem;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    background: #fff;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}
.cert-type-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 1.25rem;
}
.cert-type-info {
    flex: 1;
}
.cert-type-info h5 {
    margin: 0 0 0.25rem 0;
    font-size: 0.95rem;
}
.cert-type-meta {
    font-size: 0.75rem;
    color: #6c757d;
}

/* Form row with 3 columns */
.form-row-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}
@media (max-width: 768px) {
    .form-row-3 {
        grid-template-columns: 1fr;
    }
}

/* Opacity for inactive items */
.opacity-50 {
    opacity: 0.5;
}

/* Badge outline */
.badge-outline {
    background: transparent;
    border: 1px solid #6c757d;
    color: #6c757d;
}

/* Modal inline (for edit forms in tables) */
.modal-inline {
    background: #f8f9fa;
    border-top: 1px solid #dee2e6;
}
.modal-inline-content {
    padding: 1rem;
}

/* Row inactive state */
.row-inactive {
    opacity: 0.5;
}

/* Icon size utility */
.icon-4xl {
    font-size: 4rem;
}

/* Instructor Certifications Page Styles */
.bg-danger-light { background-color: rgba(220, 53, 69, 0.1); }
.bg-warning-light { background-color: rgba(255, 193, 7, 0.1); }
.bg-critical-warning { background-color: rgba(220, 53, 69, 0.15); }

/* Tabs */
.tabs { 
    display: flex; 
    gap: 0; 
    border-bottom: 2px solid #dee2e6; 
}
.tab { 
    padding: 0.75rem 1.25rem; 
    text-decoration: none; 
    color: #6c757d; 
    border-bottom: 2px solid transparent; 
    margin-bottom: -2px; 
    cursor: pointer;
}
.tab:hover { 
    color: #495057; 
    background: #f8f9fa; 
}
.tab.active { 
    color: var(--primary-color); 
    border-bottom-color: var(--primary-color); 
    font-weight: 600; 
}

/* Button Group */
.btn-group { 
    display: flex; 
    gap: 0; 
}
.btn-group .btn { 
    border-radius: 0; 
}
.btn-group .btn:first-child { 
    border-radius: 4px 0 0 4px; 
}
.btn-group .btn:last-child { 
    border-radius: 0 4px 4px 0; 
}

/* Modal Large */
.modal-lg { 
    max-width: 800px; 
}

/* Utility classes for CSP compliance */
.w-auto { width: auto !important; }
.w-200 { width: 200px !important; }
.icon-3xl { font-size: 3rem !important; }
.icon-2xl { font-size: 2rem !important; }

/* Badge outline dynamic (JS will apply colors) */
.badge-outline-dynamic {
    background-color: transparent;
    border: 1px solid currentColor;
}

/* Sortable Table Headers */
th.sortable {
    cursor: pointer;
    user-select: none;
    position: relative;
    padding-right: 1.5rem !important;
}
th.sortable:hover {
    background-color: rgba(0, 0, 0, 0.05);
}
th.sortable .sort-icon {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.4;
    font-size: 0.75rem;
}
th.sortable:hover .sort-icon {
    opacity: 0.7;
}
th.sortable.sort-asc .sort-icon,
th.sortable.sort-desc .sort-icon {
    opacity: 1;
    color: var(--primary-color);
}

/* Document links in certification table */
.doc-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}
.doc-links .btn {
    white-space: nowrap;
}
.btn-outline-info {
    color: #17a2b8;
    border-color: #17a2b8;
    background-color: transparent;
}
.btn-outline-info:hover {
    color: #fff;
    background-color: #17a2b8;
    border-color: #17a2b8;
}
