/* Modern Reset & Base Styling */
:root {
    --bg-dark: #0b0f19;
    --bg-card: rgba(22, 30, 46, 0.65);
    --bg-card-hover: rgba(30, 41, 59, 0.8);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-focus: rgba(163, 230, 53, 0.5);
    
    --accent-neon: #a3e635; /* Neon Lime */
    --accent-orange: #f97316; /* CrossFit Orange */
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    --font-heading: 'Outfit', 'Inter', -apple-system, sans-serif;
    --font-body: 'Inter', -apple-system, sans-serif;
    
    --shadow-glow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --shadow-accent: 0 0 15px rgba(163, 230, 53, 0.2);
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light Theme Variables */
body.light-theme {
    --bg-dark: #f1f5f9;
    --bg-card: rgba(255, 255, 255, 0.8);
    --bg-card-hover: rgba(255, 255, 255, 0.95);
    --border-color: rgba(15, 23, 42, 0.08);
    --border-focus: #10b981;
    
    --accent-neon: #059669; /* Emerald Green */
    --accent-orange: #ea580c;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --shadow-glow: 0 8px 32px 0 rgba(148, 163, 184, 0.15);
    --shadow-accent: 0 4px 12px rgba(16, 185, 129, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    transition: background-color var(--transition-normal), color var(--transition-normal);
}

/* Background Gradients */
.glow-bg {
    position: fixed;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    opacity: 0.15;
    pointer-events: none;
    transition: opacity var(--transition-normal);
}

.glow-1 {
    top: -50px;
    left: -50px;
    background: var(--accent-neon);
}

.glow-2 {
    bottom: 10%;
    right: -50px;
    background: var(--accent-orange);
}

/* Layout Container */
.app-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 16px;
    padding-bottom: 80px; /* Space for footer */
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-height: 100vh;
}

/* Header */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}

.header-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.sync-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    transition: all var(--transition-fast);
}

.sync-indicator.loading {
    color: var(--accent-neon);
    border-color: rgba(163, 230, 53, 0.2);
}

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

.sync-indicator.offline {
    color: var(--accent-orange);
    border-color: rgba(249, 115, 22, 0.2);
}

.sync-indicator .spinner {
    animation: rotate 1.5s linear infinite;
    width: 14px;
    height: 14px;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}


.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.app-logo {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.15);
    transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.app-logo:hover {
    transform: scale(1.05);
    border-color: var(--accent-neon);
    box-shadow: 0 0 10px rgba(163, 230, 53, 0.4);
}

.logo-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.logo-area h1 {
    font-family: var(--font-heading);
    font-size: 21px;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-top: 2px;
    line-height: 1.1;
}

.accent-dot {
    color: var(--accent-neon);
}

.badge {
    background: linear-gradient(135deg, var(--accent-neon), var(--accent-orange));
    color: #0b0f19;
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 20px;
    display: inline-block;
}

/* Buttons */
.icon-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform var(--transition-fast), background var(--transition-fast);
}

.icon-btn:active {
    transform: scale(0.95);
}

.icon-btn.sm {
    width: 32px;
    height: 32px;
}

.icon-btn.sm svg {
    width: 16px;
    height: 16px;
}

.btn {
    font-family: var(--font-heading);
    font-weight: 600;
    padding: 10px 18px;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
}

.btn-secondary {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

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

.btn-sm {
    padding: 6px 12px;
    font-size: 13px;
    border-radius: var(--radius-sm);
}

/* Pinned Bar */
.pinned-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--accent-neon);
    padding: 12px 16px;
    border-radius: var(--radius-md);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--shadow-accent);
    animation: slideDown 0.3s ease;
}

.pinned-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pinned-info svg {
    width: 20px;
    height: 20px;
}

.pinned-info .label {
    font-size: 12px;
    color: var(--text-secondary);
    display: block;
}

.pinned-info .value {
    font-weight: 700;
    font-size: 15px;
}

.pinned-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hidden {
    display: none !important;
}

/* Search Box */
.search-section {
    position: relative;
    z-index: 10;
}

.search-box {
    display: flex;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0 16px;
    height: 52px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.search-box:focus-within {
    border-color: var(--border-focus);
    box-shadow: var(--shadow-accent);
}

.search-icon {
    color: var(--text-secondary);
    margin-left: 12px;
    width: 20px;
    height: 20px;
}

.search-box input {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 16px;
    width: 100%;
    outline: none;
    font-family: var(--font-body);
}

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

.clear-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
}

/* Suggestions Dropdown */
.suggestions-box {
    position: absolute;
    top: 58px;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    max-height: 280px;
    overflow-y: auto;
    z-index: 20;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-glow);
}

.suggestion-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    cursor: pointer;
    transition: background var(--transition-fast);
    border-bottom: 1px solid var(--border-color);
    font-weight: 500;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover, .suggestion-item.active {
    background: var(--bg-card-hover);
}

.pin-suggest-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    transition: color var(--transition-fast);
}

.pin-suggest-btn:hover {
    color: var(--accent-neon);
}

/* Main Navigation Tabs */
.main-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 4px;
    backdrop-filter: blur(12px);
}

.tab-link {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 10px 4px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    transition: all var(--transition-fast);
}

.tab-link svg {
    width: 20px;
    height: 20px;
}

.tab-link.active {
    background: rgba(255, 255, 255, 0.08);
    color: var(--accent-neon);
}

/* Day Toggle Navigation */
.day-toggle-container {
    display: flex;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 4px;
    margin-bottom: 16px;
}

.day-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 10px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 700;
    font-family: var(--font-heading);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.day-btn.active {
    background: var(--text-primary);
    color: var(--bg-dark);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Tab Panels */
.tab-panel {
    display: none;
    animation: fadeIn 0.4s ease;
}

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

/* Empty State */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    background: var(--bg-card);
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(12px);
    margin-top: 10px;
}

.empty-icon-wrapper {
    background: rgba(255, 255, 255, 0.03);
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px auto;
}

.empty-icon {
    width: 32px;
    height: 32px;
    color: var(--text-muted);
}

.empty-state h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.empty-state p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.quick-judges-container {
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
    text-align: right;
}

.quick-judges-container h4 {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.quick-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-start;
}

.quick-tag {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 6px 12px;
    border-radius: 30px;
    font-size: 13px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.quick-tag:hover {
    border-color: var(--accent-neon);
    color: var(--accent-neon);
    background: rgba(163, 230, 53, 0.05);
}

/* Personal Schedule Display */
.personal-summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

.summary-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    backdrop-filter: blur(12px);
}

.summary-card svg {
    width: 24px;
    height: 24px;
    color: var(--accent-neon);
}

.summary-card.orange svg {
    color: var(--accent-orange);
}

.summary-card .label {
    font-size: 11px;
    color: var(--text-secondary);
    display: block;
}

.summary-card .value {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
}

/* Timeline Layout */
.timeline {
    position: relative;
    padding-right: 20px;
    margin-top: 20px;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 8px;
    bottom: 8px;
    right: 5px;
    width: 2px;
    background: var(--border-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 20px;
}

.timeline-dot {
    position: absolute;
    right: -20px;
    top: 14px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--bg-dark);
    border: 3px solid var(--accent-neon);
    z-index: 2;
    transition: transform var(--transition-fast);
}

.timeline-item.break .timeline-dot {
    border-color: var(--text-muted);
}

/* Shifts Cards */
.shift-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
    backdrop-filter: blur(12px);
    transition: border-color var(--transition-fast);
}

.shift-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
}

.shift-card.current {
    border-color: var(--accent-neon);
    box-shadow: var(--shadow-accent);
}

.shift-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.shift-time {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 15px;
    color: var(--text-primary);
}

.shift-time svg {
    width: 16px;
    height: 16px;
    color: var(--accent-neon);
}

.shift-lane {
    background: rgba(163, 230, 53, 0.1);
    border: 1px solid var(--accent-neon);
    color: var(--accent-neon);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 4px;
}

.shift-body h3 {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
}

.shift-desc {
    font-size: 13px;
    color: var(--text-secondary);
}

/* Details Section inside Shift Card */
.shift-details-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: transparent;
    border: none;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding-top: 12px;
    margin-top: 12px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.shift-details-toggle svg {
    width: 16px;
    height: 16px;
    transition: transform var(--transition-fast);
}

.shift-details-toggle.expanded svg {
    transform: rotate(180deg);
}

.shift-heats-list {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    animation: slideDown 0.3s ease;
}

.heat-sub-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    font-size: 13px;
}

.heat-sub-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    font-weight: 700;
}

.heat-sub-time {
    color: var(--text-secondary);
    font-family: var(--font-heading);
}

.athlete-info {
    color: var(--text-primary);
    font-weight: 500;
    white-space: pre-line; /* Support \n in excel */
    background: rgba(255, 255, 255, 0.01);
    padding: 6px;
    border-radius: 4px;
    border-right: 2px solid var(--accent-orange);
    margin: 4px 0;
}

.team-badge {
    font-size: 11px;
    color: var(--accent-orange);
    font-weight: 600;
}

/* Break Timeline Card */
.break-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 600;
}

.break-card svg {
    width: 16px;
    height: 16px;
}

/* Full Schedule Views */
.full-schedule-header {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px;
    margin-bottom: 16px;
    backdrop-filter: blur(12px);
}

.full-schedule-header .day-toggle-container {
    margin-bottom: 12px;
}

.filters-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.select-wrapper {
    position: relative;
}

.select-wrapper select {
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    height: 38px;
    padding: 0 12px;
    padding-left: 28px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    outline: none;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    font-weight: 500;
}

.select-wrapper select:focus {
    border-color: var(--accent-neon);
}

.select-chevron {
    position: absolute;
    left: 10px;
    top: 11px;
    width: 16px;
    height: 16px;
    color: var(--text-secondary);
    pointer-events: none;
}

/* Full Schedule List Cards */
.event-group-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    backdrop-filter: blur(12px);
    overflow: hidden;
}

.event-group-header {
    background: rgba(255, 255, 255, 0.02);
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.event-group-header h3 {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
}

.event-count-badge {
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 11px;
    color: var(--text-secondary);
}

.heats-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
}

.heat-card {
    background: rgba(0, 0, 0, 0.15);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.heat-card-header {
    background: rgba(255, 255, 255, 0.02);
    padding: 10px 12px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.heat-card-header h4 {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
}

.heat-time-badge {
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 700;
    color: var(--accent-neon);
}

.lanes-grid {
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.lane-row {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--border-color);
    padding: 8px 10px;
    border-radius: 4px;
    font-size: 12px;
}

.lane-num-badge {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-family: var(--font-heading);
    color: var(--accent-neon);
}

.lane-athlete {
    flex: 1;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lane-judge {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 2px 6px;
    border-radius: 4px;
    color: var(--text-secondary);
    font-size: 11px;
    max-width: 110px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left;
}

/* Accordion for standards */
.standards-container h2 {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 4px;
}

.section-desc {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.accordion {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.accordion-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    backdrop-filter: blur(12px);
}

.accordion-header {
    width: 100%;
    background: transparent;
    border: none;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    text-align: right;
    color: var(--text-primary);
}

.accordion-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.workout-num {
    background: rgba(249, 115, 22, 0.1);
    border: 1px solid var(--accent-orange);
    color: var(--accent-orange);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}

.accordion-title h3 {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
}

.accordion-chevron {
    width: 18px;
    height: 18px;
    color: var(--text-secondary);
    transition: transform var(--transition-fast);
}

.accordion-item.active .accordion-chevron {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-normal);
}

.wod-details {
    padding: 16px;
    padding-top: 0;
    border-top: 1px solid var(--border-color);
    font-size: 13px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.wod-meta {
    display: flex;
    gap: 12px;
    margin-top: 12px;
    font-size: 12px;
    color: var(--text-secondary);
}

.wod-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.wod-details h4 {
    font-size: 14px;
    margin-top: 10px;
    font-weight: 700;
    color: var(--accent-neon);
}

.wod-details ul {
    padding-right: 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Info Card */
.info-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
    backdrop-filter: blur(12px);
    margin-bottom: 20px;
}

.info-card .card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
}

.info-card .card-header svg {
    width: 20px;
    height: 20px;
}

.info-card .card-header h3 {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
}

.info-card .card-body ul {
    padding-right: 18px;
    font-size: 13px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: var(--text-secondary);
}

/* Footer Bar */
.app-footer-bar {
    text-align: center;
    padding: 24px 0;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 12px;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideDown {
    from { max-height: 0; opacity: 0; overflow: hidden; }
    to { max-height: 1000px; opacity: 1; }
}

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

/* Scrollbar customization */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.1);
}

::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.1);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.2);
}

/* Standards PDF Resource Grid */
.standards-resources-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 20px 0 24px 0;
}

.resource-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 16px;
    text-decoration: none;
    color: var(--text-main);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    gap: 16px;
}

.resource-card-header {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.resource-icon {
    width: 44px;
    height: 44px;
    background: rgba(163, 230, 53, 0.08);
    border: 1px solid rgba(163, 230, 53, 0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-neon);
    flex-shrink: 0;
    transition: all var(--transition-fast);
}

.resource-card:nth-child(2) .resource-icon {
    background: rgba(249, 115, 22, 0.08);
    border-color: rgba(249, 115, 22, 0.2);
    color: var(--accent-orange);
}

.resource-card:nth-child(3) .resource-icon {
    background: rgba(59, 130, 246, 0.08);
    border-color: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
}

.resource-icon svg {
    width: 22px;
    height: 22px;
}

.resource-info {
    flex: 1;
}

.resource-info h3 {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 4px;
    color: #ffffff;
    transition: color var(--transition-fast);
}

.resource-info p {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.resource-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 12px;
    font-weight: 600;
    color: var(--accent-neon);
    transition: color var(--transition-fast);
}

.resource-card:nth-child(2) .resource-action {
    color: var(--accent-orange);
}

.resource-card:nth-child(3) .resource-action {
    color: #3b82f6;
}

.resource-action svg {
    width: 14px;
    height: 14px;
    transition: transform var(--transition-fast);
}

/* Card Hover States */
.resource-card:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.03);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.resource-card:hover:nth-child(1) {
    border-color: rgba(163, 230, 53, 0.4);
}
.resource-card:hover:nth-child(2) {
    border-color: rgba(249, 115, 22, 0.4);
}
.resource-card:hover:nth-child(3) {
    border-color: rgba(59, 130, 246, 0.4);
}

.resource-card:hover .resource-action svg {
    transform: translateX(-4px);
}

.section-subtitle {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    margin: 28px 0 12px 0;
    color: #ffffff;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 6px;
}

/* Floating Action Button (FAB) for Scroll to Now */
.fab-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 100;
    background: var(--accent-neon);
    color: var(--bg-dark);
    border: none;
    border-radius: 50px;
    padding: 12px 20px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 20px rgba(0, 242, 254, 0.4);
    cursor: pointer;
    transition: all var(--transition-normal) ease;
    opacity: 1;
    transform: translateY(0);
}

.fab-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0, 242, 254, 0.6);
}

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

.fab-btn.hidden {
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
}

/* Flash Highlight for current item */
@keyframes flash-neon {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 242, 254, 0.8);
        border-color: var(--accent-neon);
    }
    50% {
        box-shadow: 0 0 20px 8px rgba(0, 242, 254, 0.4);
        border-color: var(--accent-neon);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 242, 254, 0);
    }
}

.flash-highlight {
    animation: flash-neon 2s ease-out;
    border: 2px solid var(--accent-neon) !important;
}

