/* Learning Lens - Shared Styles */
/* Common styles used across all pages */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Lexend', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.5;
}

/* Material Symbols Rounded Class */
.material-symbols-rounded {
    font-family: 'Material Symbols Rounded';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* Icon Variants */
.icon-filled {
    font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.icon-large {
    font-size: 32px;
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 32;
}

.icon-small {
    font-size: 20px;
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 20;
}

/* ============================== */
/* HEADER COMPONENT - VARIATION 1: CLEAN MINIMAL */
/* ============================== */

.header {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    padding: 0 2rem;
    height: 64px;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 10000000;
}

.header-content {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header .brand-section {
    display: flex;
    align-items: center;
    gap: 4rem;
}

/* Brand */
.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-primary);
}

.brand-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-icon .material-symbols-rounded {
    color: white;
    font-size: 24px;
}

.brand .logo-text {
    font-size: 1.25rem;
    font-weight: 600;
}

/* Section Subnavigation - Now as Nav Links */
/* Hide navigation tabs by default - shown via JS when authenticated */
.subnav-tabs {
    display: none;
    gap: 0.5rem;
    align-items: center;
}

/* Show when authenticated */
body.authenticated .subnav-tabs {
    display: flex;
}

/* Hide search and section dropdown by default */
.search-container,
.section-dropdown {
    display: none;
}

/* Show when authenticated */
body.authenticated .search-container {
    display: flex;
}

body.authenticated .section-dropdown {
    display: block;
}

.subnav-tab {
    padding: 0.5rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
    font-size: 0.9375rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.subnav-tab:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.subnav-tab.active {
    background: var(--brand-primary);
    color: white;
}

.subnav-tab .icon-small {
    font-size: 20px;
}

/* Subnav More Dropdown (hamburger menu) */
.subnav-more-wrapper {
    position: relative;
}

.subnav-more-btn {
    cursor: pointer;
    border: none;
    background: transparent;
}

.subnav-more-btn.active {
    background: var(--brand-primary);
    color: white;
}

.subnav-more-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 180px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    overflow: hidden;
}

.subnav-more-dropdown.show {
    display: block;
    animation: dropdownFadeIn 0.15s ease;
}

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

/* Student Selector Dropdown (Header - Parent Nav) */
.student-selector-dropdown {
    position: relative;
    margin-left: 0;
    margin-right: 8px;
}

.student-selector-btn {
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    border-radius: 24px;
    font-family: 'Lexend', sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.student-selector-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.student-selector-dropdown.open .student-selector-btn {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
}

/* Gradient indicator circle for selected student */
.student-gradient-indicator {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    flex-shrink: 0;
}

.student-selector-btn .selected-student-name {
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.student-selector-btn .dropdown-arrow {
    transition: transform 0.2s ease;
    font-size: 18px;
    color: var(--text-secondary);
}

.student-selector-dropdown.open .dropdown-arrow {
    transform: rotate(180deg);
}

.student-selector-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 220px;
    background: rgba(20, 20, 25, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    overflow: hidden;
    padding: 6px;
}

.student-selector-dropdown.open .student-selector-menu {
    display: block;
    animation: dropdownFadeIn 0.15s ease;
}

.student-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    width: 100%;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-family: 'Lexend', sans-serif;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.15s ease;
    text-align: left;
    border-radius: 10px;
}

.student-option:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
}

.student-option.active {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

/* Gradient circle for each student option */
.student-option-gradient {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    flex-shrink: 0;
}

.student-option-name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.student-option .check-icon {
    font-size: 18px;
    color: var(--color-success, #66bb6a);
    margin-left: auto;
}

.subnav-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.15s ease;
}

.subnav-dropdown-item:hover {
    background: var(--bg-tertiary);
}

.subnav-dropdown-item.active {
    background: rgba(88, 115, 203, 0.15);
    color: var(--brand-primary);
}

.subnav-dropdown-item .material-symbols-rounded {
    font-size: 20px;
    opacity: 0.8;
}

/* Search and Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.search-container {
    display: flex;
    align-items: center;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    padding: 0.5rem 1rem;
    gap: 0.5rem;
    width: 300px;
}

.search-input {
    background: none;
    border: none;
    outline: none;
    color: var(--text-primary);
    flex: 1;
    font-size: 0.9375rem;
    font-family: inherit;
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-icon {
    color: var(--text-muted);
    font-size: 20px;
}

/* Section Dropdown - Styled as User Menu */
.section-dropdown {
    position: relative;
}

.section-button {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    background: var(--bg-tertiary);
    border-radius: var(--radius-full);
    cursor: pointer;
    border: none;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.section-button:hover {
    background: rgba(255, 255, 255, 0.1);
}

.section-button .material-symbols-rounded {
    font-size: 20px;
}

.section-button .dropdown-arrow {
    font-size: 18px;
    transition: transform 0.2s ease;
}

.section-button.active .dropdown-arrow {
    transform: rotate(180deg);
}

.section-label {
    min-width: 60px;
}

.section-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s ease;
    z-index: 10000002;
}

.section-dropdown-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.95rem;
    font-weight: 500;
}

.dropdown-item:first-child {
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.dropdown-item:last-child {
    border-radius: 0 0 var(--radius-md) var(--radius-md);
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.dropdown-item.active {
    background: rgba(88, 115, 203, 0.15);
    color: var(--accent-blue);
}

.dropdown-item .material-symbols-rounded {
    font-size: 20px;
}

/* Responsive Header Breakpoints */
@media (max-width: 1024px) {
    .header {
        padding: 0 1.5rem;
    }

    .header .brand-section {
        gap: 2rem;
    }

    .search-container {
        width: 200px;
    }

    .subnav-tab {
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
    }

    .subnav-tab .icon-small {
        display: none;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 0 1rem;
        height: auto;
        min-height: 64px;
    }

    .header-content {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .header .brand-section {
        gap: 1rem;
        flex: 1;
    }

    .brand .logo-text {
        font-size: 1.125rem;
    }

    .subnav-tabs {
        order: 3;
        width: 100%;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .subnav-tabs::-webkit-scrollbar {
        display: none;
    }

    .header-actions {
        gap: 1rem;
    }

    .search-container {
        display: none;
    }

    .section-button .section-label {
        display: none;
    }
}

/* Main Content Area */
.main-content {
    flex: 1;
    padding: var(--space-4) 2rem;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

/* ============================== */
/* PAGE TITLE COMPONENT - VARIATION 6: WITH ACTIONS */
/* ============================== */

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

.title-content {
    display: flex;
    align-items: center;
    gap: 0;
}

.title-content h1,
.page-heading {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.page-heading .material-symbols-rounded,
.title-content h1 .material-symbols-rounded {
    font-size: 28px;
    color: #5873CB;
}

.page-subheading {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.6;
    max-width: 600px;
    margin: 0.5rem 0 0 0;
}

.page-title-section {
    flex: 1;
}

.actions,
.page-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.header-search {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    min-width: 250px;
    transition: all 0.2s ease;
}

.header-search:focus-within {
    background: rgba(255, 255, 255, 0.08);
    border-color: #5873CB;
    box-shadow: 0 0 0 3px rgba(88, 115, 203, 0.1);
}

.header-search .material-symbols-rounded {
    font-size: 20px;
    color: var(--text-secondary);
}

.header-search input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-family: 'Lexend', sans-serif;
    font-size: 0.875rem;
}

.header-search input::placeholder {
    color: var(--text-secondary);
}

.action-btn,
.page-actions .btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s;
    cursor: pointer;
    font-family: inherit;
}

.action-btn:hover,
.page-actions .btn-secondary:hover {
    background: var(--bg-tertiary);
    border-color: var(--brand-primary);
}

.action-btn.primary,
.page-actions .btn-primary {
    background: var(--gradient-primary);
    border: none;
    color: white;
}

.action-btn.primary:hover,
.page-actions .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.action-btn .material-symbols-rounded,
.page-actions .btn .material-symbols-rounded {
    font-size: 18px;
}

/* Responsive breakpoints for page header */
@media (max-width: 768px) {
    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .title-content h1,
    .page-heading {
        font-size: 1.5rem;
    }

    .actions,
    .page-actions {
        width: 100%;
    }

    .action-btn,
    .page-actions .btn {
        flex: 1;
        justify-content: center;
    }

    .header-search {
        width: 100%;
        min-width: 100%;
    }
}

/* Common Card Styles */
.card {
    background: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    box-shadow: var(--shadow-md);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-4);
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

/* Common Button Styles */
.btn {
    padding: var(--space-3) var(--space-6);
    border-radius: var(--radius-md);
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
}

.btn-primary {
    background: var(--gradient-blue);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
    background: var(--bg-surface);
}

.btn-ghost {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: var(--space-2) var(--space-4);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Utility Classes */
.text-muted {
    color: var(--text-muted);
}

.text-accent {
    color: var(--text-accent);
}

.mt-1 { margin-top: var(--space-1); }
.mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }

.mb-1 { margin-bottom: var(--space-1); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-3 { margin-bottom: var(--space-3); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }

.p-1 { padding: var(--space-1); }
.p-2 { padding: var(--space-2); }
.p-3 { padding: var(--space-3); }
.p-4 { padding: var(--space-4); }
.p-6 { padding: var(--space-6); }

/* ========================================
   PARENT PAGE COMPONENTS
   Created: 2025-11-20
   Purpose: Reusable components for parent.html and similar pages
   ======================================== */

/* Empty State Component - Used when no data to display */
.empty-state {
    text-align: center;
    padding: var(--space-10);
    color: var(--text-secondary);
    background: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
}

.empty-state__icon {
    font-size: 64px;
    opacity: 0.5;
    display: block;
    margin-bottom: var(--space-4);
}

.empty-state__title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-2);
}

.empty-state__description {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Loading State Component */
.loading-state {
    text-align: center;
    padding: var(--space-10);
    color: var(--text-secondary);
}

.loading-state__spinner {
    font-size: 48px;
    display: block;
    margin-bottom: var(--space-4);
}

.loading-state__text {
    font-size: 1.125rem;
}

/* Grid column full width utility */
.grid-full-width {
    grid-column: 1 / -1;
}

/* Error State Component */
.error-state {
    text-align: center;
    padding: var(--space-10);
    color: var(--text-secondary);
}

.error-state__icon {
    font-size: 48px;
    color: #ea4335;
    display: block;
    margin-bottom: var(--space-4);
}

.error-state__title {
    font-size: 1.125rem;
    margin-bottom: var(--space-2);
}

.error-state__message {
    font-size: 0.875rem;
}

/* Stat Card Components - Used for summary statistics */
.stat-card {
    background: var(--bg-secondary);
    border-left: 4px solid;
    border-radius: var(--radius-md);
    padding: var(--space-4);
}

.stat-card--quest {
    background: rgba(88, 115, 203, 0.15);
    border-left-color: var(--accent-blue);
}

.stat-card--success {
    background: rgba(52, 168, 83, 0.15);
    border-left-color: var(--accent-green);
}

.stat-card--neutral {
    background: rgba(160, 160, 160, 0.15);
    border-left-color: var(--text-gray-900);
}

.stat-card--warning {
    background: rgba(217, 186, 107, 0.15);
    border-left-color: var(--accent-yellow);
}

.stat-card__label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-1);
}

.stat-card__value {
    font-size: 2rem;
    font-weight: 700;
}

.stat-card__value--quest {
    color: var(--accent-blue);
}

.stat-card__value--success {
    color: var(--accent-green);
}

.stat-card__value--neutral {
    color: var(--text-gray-900);
}

.stat-card__value--warning {
    color: var(--accent-yellow);
}

/* Section Title with Icon - Override for parent page */
.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-6);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.section-title__icon {
    font-size: 28px;
    color: var(--accent-blue);
}

.section-title__icon--warning {
    color: var(--accent-yellow);
}

.section-title__icon--success {
    color: var(--accent-green);
}

/* Subsection Title */
.subsection-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-4);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

/* Warning/Alert Banner Components */
.alert-banner {
    border-left: 4px solid;
    border-radius: var(--radius-sm-md);
    padding: var(--space-2) var(--space-3);
    margin-bottom: var(--space-3);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.alert-banner--warning {
    background: rgba(251, 188, 4, 0.15);
    border-left-color: #fbbc04;
}

.alert-banner--info {
    background: rgba(217, 186, 107, 0.15);
    border-left-color: var(--accent-yellow);
}

.alert-banner--error {
    background: rgba(234, 67, 53, 0.15);
    border-left-color: #ea4335;
}

.alert-banner__icon {
    font-size: 18px;
    flex-shrink: 0;
}

.alert-banner__icon--warning {
    color: #fbbc04;
}

.alert-banner__icon--info {
    color: var(--accent-yellow);
}

.alert-banner__icon--error {
    color: #ea4335;
}

.alert-banner__text {
    font-size: 0.85rem;
    color: var(--text-primary);
}

/* Progress Bar Components */
.progress-dimension {
    margin-bottom: var(--space-2);
}

.progress-dimension:last-child {
    margin-bottom: 0;
}

.progress-dimension__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-1);
}

.progress-dimension__label {
    font-size: 0.85rem;
    color: var(--text-primary);
}

.progress-dimension__value {
    font-size: 0.85rem;
    font-weight: 600;
}

.progress-dimension__value--urgency {
    color: #ea4335;
}

.progress-dimension__value--importance {
    color: #fb8c00;
}

.progress-dimension__value--performance {
    color: var(--brand-primary);
}

.progress-dimension__value--foundational {
    color: var(--quest-primary);
}

.progress-dimension__bar-container {
    width: 100%;
    height: 6px;
    background: var(--bg-white-10);
    border-radius: var(--radius-xs);
    overflow: hidden;
}

.progress-dimension__bar-fill {
    height: 100%;
    border-radius: var(--radius-xs);
}

.progress-dimension__bar-fill--urgency {
    background: linear-gradient(90deg, #ea4335 0%, #f87171 100%);
}

.progress-dimension__bar-fill--importance {
    background: linear-gradient(90deg, #fb8c00 0%, #ffa726 100%);
}

.progress-dimension__bar-fill--performance {
    background: linear-gradient(90deg, #5873CB 0%, #7b93db 100%);
}

.progress-dimension__bar-fill--foundational {
    background: linear-gradient(90deg, #8b5cf6 0%, #a78bfa 100%);
}

/* Metadata Row Component - For assignment/item metadata */
.metadata-row {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-3);
}

.metadata-item {
    display: flex;
    align-items: center;
    gap: var(--space-1);
}

.metadata-item__icon {
    font-size: 16px;
}

/* Badge Components */
.badge {
    padding: var(--space-1-5) var(--space-3);
    border-radius: var(--radius-sm-md);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.badge--missing {
    background: rgba(234, 67, 53, 0.2);
    color: #ea4335;
}

.badge--incomplete {
    background: rgba(251, 188, 4, 0.2);
    color: #fbbc04;
}

.badge--priority {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
    display: flex;
    align-items: center;
    gap: var(--space-1);
    font-size: 1.1rem;
    font-weight: 700;
}

.badge--high-stakes {
    background: rgba(234, 67, 53, 0.15);
    color: #ea4335;
    display: flex;
    align-items: center;
    gap: var(--space-1-5);
    padding: var(--space-1-5) var(--space-2-5);
    font-size: 0.8rem;
}

/* Flex Layout Utilities */
.flex {
    display: flex;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.flex-start {
    display: flex;
    align-items: flex-start;
}

.flex-gap-1 {
    gap: var(--space-1);
}

.flex-gap-2 {
    gap: var(--space-2);
}

.flex-gap-3 {
    gap: var(--space-3);
}

.flex-gap-4 {
    gap: var(--space-4);
}

.flex-1 {
    flex: 1;
}

/* Icon Size Utilities */
.icon-xs {
    font-size: 14px;
}

.icon-sm {
    font-size: 16px;
}

.icon-md {
    font-size: 18px;
}

.icon-lg {
    font-size: 20px;
}

.icon-xl {
    font-size: 24px;
}

.icon-2xl {
    font-size: 28px;
}

.icon-3xl {
    font-size: 48px;
}

/* Icon with vertical alignment */
.icon-middle {
    vertical-align: middle;
}

/* Text Size Utilities */
.text-xs {
    font-size: 0.75rem;
}

.text-sm {
    font-size: 0.85rem;
}

.text-base {
    font-size: 0.9375rem;
}

.text-lg {
    font-size: 1.125rem;
}

.text-xl {
    font-size: 1.25rem;
}

.text-2xl {
    font-size: 1.5rem;
}

.text-3xl {
    font-size: 2rem;
}

/* Font Weight Utilities */
.font-normal {
    font-weight: 400;
}

.font-medium {
    font-weight: 500;
}

.font-semibold {
    font-weight: 600;
}

.font-bold {
    font-weight: 700;
}

/* Color Utilities */
.color-primary {
    color: var(--text-primary);
}

.color-secondary {
    color: var(--text-secondary);
}

.color-blue {
    color: var(--accent-blue);
}

.color-green {
    color: var(--accent-green);
}

.color-yellow {
    color: var(--accent-yellow);
}

.color-red {
    color: #ea4335;
}

.color-orange {
    color: #fb8c00;
}

.color-purple {
    color: var(--accent-purple);
}

/* Rotating Animation (for loading spinners) */
@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.rotating {
    animation: rotate 1s linear infinite;
}

/* Collapsible Section */
.collapsible-section {
    background: var(--bg-secondary);
    border: 1px solid rgba(88, 115, 203, 0.3);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    margin-bottom: var(--space-6);
}

.collapsible-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-4);
    cursor: pointer;
}

.collapsible-header__content {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.collapsible-header__icon {
    font-size: 28px;
    color: var(--accent-blue);
}

.collapsible-header__title {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
}

.collapsible-header__toggle {
    font-size: 24px;
    color: var(--text-secondary);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-4);
    margin-bottom: var(--space-4);
}

/* Item Card - Generic wrapper for list items */
.item-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-md);
    padding: var(--space-4);
    margin-bottom: var(--space-2);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-4);
    border-left: 4px solid;
}

.item-card__content {
    flex: 1;
}

.item-card__title {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-1);
}

.item-card__subtitle {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-2);
}

.item-card__description {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-style: italic;
}

/* Override Button - Common pattern for undo/revert actions */
.override-btn {
    padding: var(--space-2) var(--space-4);
    background: rgba(234, 67, 53, 0.2);
    border: 1px solid rgba(234, 67, 53, 0.3);
    border-radius: var(--radius-md);
    color: #ea4335;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
}

.override-btn:hover {
    background: rgba(234, 67, 53, 0.3);
    border-color: rgba(234, 67, 53, 0.4);
}

/* Section Divider */
.section-divider {
    margin-top: var(--space-5);
    padding-top: var(--space-4);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Max Width Container */
.container-max {
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}
