/* Global Design System */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&display=swap');

:root {
    --primary-color: #0f172a;
    /* Deep Blue */
    --secondary-color: #1e293b;
    /* Slate Blue */
    --accent-color: #fbbf24;
    /* Gold */
    --text-light: #f8fafc;
    --text-muted: #94a3b8;
    --glass-bg: rgba(30, 41, 59, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background: linear-gradient(135deg, #0f172a 0%, #334155 100%);
    color: var(--text-light);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Glassmorphism Utility */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
}

/* Login Page Specifics */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    padding: 20px;
}

.login-box {
    width: 100%;
    max-width: 400px;
    padding: 40px;
    text-align: center;
    animation: fadeInUp 0.8s ease-out;
}

.logo-area {
    margin-bottom: 30px;
}

.logo-icon {
    font-size: 48px;
    color: var(--accent-color);
    margin-bottom: 10px;
}

.login-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-light);
}

.login-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-light);
    font-size: 16px;
    transition: var(--transition);
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.2);
}

.btn-primary {
    width: 100%;
    padding: 14px;
    background: var(--accent-color);
    color: var(--primary-color);
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(251, 191, 36, 0.4);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out both;
}

/* Stagger delays */
.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

.delay-400 {
    animation-delay: 0.4s;
}

.delay-500 {
    animation-delay: 0.5s;
}


/* Dashboard Layout */
.dashboard-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    min-height: 100vh;
}

/* Sidebar & Mobile Menu */
.sidebar {
    background: rgba(15, 23, 42, 0.95);
    padding: 20px;
    border-right: 1px solid var(--glass-border);
    transition: transform 0.3s ease-in-out;
    z-index: 1000;
}

.main-content {
    padding: 30px;
    overflow-y: auto;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
}

.welcome-text h1 {
    font-size: 28px;
    font-weight: 700;
}

.welcome-text p {
    color: var(--text-muted);
}

.section-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    border-left: 4px solid var(--accent-color);
    padding-left: 12px;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.card {
    padding: 24px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
}

.card-icon {
    font-size: 32px;
    margin-bottom: 16px;
    color: var(--accent-color);
}

.card h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
}

.course-card {
    border-top: 4px solid var(--accent-color);
}

.announcement-item {
    padding-bottom: 15px;
    border-bottom: 1px solid var(--glass-border);
    margin-bottom: 15px;
}

.announcement-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.date-badge {
    font-size: 12px;
    background: rgba(251, 191, 36, 0.2);
    color: var(--accent-color);
    padding: 4px 8px;
    border-radius: 4px;
    margin-bottom: 8px;
    display: inline-block;
}

/* File Cards */
.file-card {
    display: flex;
    align-items: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none;
    color: var(--text-light);
}

.file-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
    border-color: var(--accent-color);
}

.file-icon {
    font-size: 24px;
    margin-right: 15px;
}

.file-icon.pptx {
    color: #f97316;
    /* Orange for PowerPoint */
}

.file-icon.docx {
    color: #3b82f6;
    /* Blue for Word */
}

.file-info h4 {
    font-size: 14px;
    font-weight: 600;
}

.file-info span {
    font-size: 12px;
    color: var(--text-muted);
}

/* Level Sections */
.level-section {
    margin-bottom: 40px;
}

.level-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--glass-border);
}

.level-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    margin-right: 15px;
    text-transform: uppercase;
    white-space: nowrap;
}

.level-badge.beginner {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

.level-badge.advanced {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

/* Featured Section Grid */
.featured-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.featured-slider {
    grid-column: span 2;
}

/* Masonry News Grid Layout */
.news-grid-masonry {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(2, 1fr);
    gap: 12px;
    height: 450px;
}

.news-card-featured {
    grid-row: 1 / 3;
    border-radius: 12px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid var(--glass-border);
}

.news-card-featured:hover,
.news-card-small:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
    border-color: var(--accent-color);
}

.news-card-small {
    border-radius: 12px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid var(--glass-border);
}

/* 4 small cards: 2 top-right, 2 bottom-right */
.news-card-small:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
}

.news-card-small:nth-child(3) {
    grid-column: 2;
    grid-row: 2;
}

.news-card-small:nth-child(4),
.news-card-small:nth-child(5) {
    display: none;
    /* Show only first 3 cards by default */
}

/* Optional: Show all 4 if needed with 2x2 right grid */
@media (min-width: 1200px) {
    .news-grid-masonry {
        grid-template-columns: 1fr 1fr 1fr;
        grid-template-rows: repeat(2, 1fr);
    }

    .news-card-featured {
        grid-column: 1;
        grid-row: 1 / 3;
    }

    .news-card-small:nth-child(2) {
        grid-column: 2;
        grid-row: 1;
    }

    .news-card-small:nth-child(3) {
        grid-column: 3;
        grid-row: 1;
    }

    .news-card-small:nth-child(4) {
        grid-column: 2;
        grid-row: 2;
        display: block;
    }

    .news-card-small:nth-child(5) {
        grid-column: 3;
        grid-row: 2;
        display: block;
    }
}

.news-badge-overlay {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #ef4444;
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    z-index: 2;
    letter-spacing: 0.5px;
}

.news-badge-overlay.new {
    background: #ef4444;
    color: white;
}

.news-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    z-index: 2;
}

.news-card-featured .news-card-content {
    padding: 30px;
}

.news-card-featured h3 {
    color: white;
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 10px 0;
    line-height: 1.3;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.news-card-small h3 {
    color: white;
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 8px 0;
    line-height: 1.3;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.news-date {
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.news-date i {
    font-size: 11px;
}

/* Responsive News Grid */
@media (max-width: 768px) {
    .news-grid-masonry {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        height: auto;
    }

    .news-card-featured {
        grid-column: 1;
        grid-row: auto;
        min-height: 250px;
    }

    .news-card-small {
        min-height: 150px;
    }

    .news-card-small:nth-child(2),
    .news-card-small:nth-child(3) {
        grid-column: 1;
        grid-row: auto;
    }

    .news-card-featured h3 {
        font-size: 20px;
    }
}

/* Grades Page Styles */
.score-card {
    animation: fadeInUp 0.5s ease-out;
}

.score-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--glass-border);
}

.student-info h2 {
    font-size: 24px;
    color: var(--text-light);
    margin-bottom: 5px;
}

.student-info p {
    color: var(--text-muted);
}

.score-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.score-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: var(--transition);
}

.score-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-5px);
    border-color: var(--accent-color);
}

.score-label {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 10px;
    display: block;
}

.score-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--accent-color);
}

.total-score-container {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.1) 0%, rgba(251, 191, 36, 0.05) 100%);
    border: 1px solid var(--accent-color);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    margin-top: 30px;
}

.total-label {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.total-value {
    font-size: 56px;
    font-weight: 800;
    color: var(--accent-color);
    text-shadow: 0 0 20px rgba(251, 191, 36, 0.3);
}

.total-status {
    margin-top: 10px;
    font-size: 14px;
    color: var(--text-muted);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .featured-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .featured-slider {
        grid-column: span 2;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .news-slider-container {
        min-height: 300px;
    }
}

@media (max-width: 768px) {
    .dashboard-layout {
        grid-template-columns: 1fr;
    }

    /* Mobile Menu Logic */
    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: 250px;
        transform: translateX(-100%);
        box-shadow: 20px 0 50px rgba(0, 0, 0, 0.5);
    }

    .sidebar.active {
        transform: translateX(0);
    }

    /* Add overlay when menu is open */
    .sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(4px);
        z-index: 999;
        display: none;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .sidebar-overlay.active {
        display: block;
        opacity: 1;
    }

    .mobile-menu-btn {
        display: block;
        margin-right: 15px;
    }

    .featured-grid {
        grid-template-columns: 1fr;
    }

    .featured-slider {
        grid-column: span 1;
    }

    /* Lesson View Mobile Layout */
    .lesson-content-grid {
        grid-template-columns: 1fr;
    }

    /* Mobile Color Correction */
    :root {
        --accent-color: #facc15;
        /* Lighter yellow for mobile to avoid orange tint */
    }
}

/* Lesson View Styles */
.lesson-content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.lesson-materials {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Forum Styles */
.forum-search-bar {
    width: 100%;
    max-width: 600px;
    padding: 12px 20px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text-light);
    font-size: 16px;
    outline: none;
    transition: var(--transition);
}

.forum-search-bar:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 15px rgba(251, 191, 36, 0.1);
}

.forum-filters {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 14px;
}

.filter-btn.active,
.filter-btn:hover {
    background: rgba(251, 191, 36, 0.2);
    color: var(--accent-color);
    border-color: var(--accent-color);
}

.forum-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.forum-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 20px;
    border-radius: 16px;
    transition: var(--transition);
    cursor: pointer;
    backdrop-filter: blur(12px);
}

.forum-item:hover {
    transform: translateX(5px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.forum-item-main {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    flex: 1;
}

.user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
    font-size: 18px;
    flex-shrink: 0;
}

.forum-content h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--text-light);
}

.forum-content p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 12px;
    line-height: 1.5;
}

.forum-meta {
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: var(--text-muted);
    align-items: center;
}

.forum-badge {
    padding: 4px 10px;
    border-radius: 6px;
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid var(--glass-border);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.forum-stats {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    min-width: 100px;
}

.stat-item {
    font-size: 13px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Forum Details */
.thread-container {
    max-width: 900px;
    margin: 0 auto;
}

.main-post {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 30px;
    border-radius: 16px;
    margin-bottom: 30px;
}

.post-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--glass-border);
}

.post-body {
    font-size: 16px;
    line-height: 1.8;
    color: #e2e8f0;
}

.replies-section {
    margin-top: 40px;
}

.reply-item {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    animation: fadeInUp 0.5s ease-out;
}

.reply-content {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    padding: 20px;
    border-radius: 0 16px 16px 16px;
    flex: 1;
}

.reply-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 12px;
    color: var(--text-muted);
}

.reply-actions {
    margin-top: 15px;
    display: flex;
    gap: 15px;
}

.action-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s;
}


.action-btn:hover {
    color: var(--accent-color);
}

/* Splash Screen */
#splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.8s ease-out, visibility 0.8s;
}

#splash-screen.fade-out {
    opacity: 0;
    visibility: hidden;
}

.splash-icon {
    font-size: 80px;
    color: var(--accent-color);
    margin-bottom: 20px;
    opacity: 0;
    animation: iconFadeIn 0.8s ease-out forwards;
}

.splash-text {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-light);
}

.splash-text span {
    opacity: 0;
    display: inline-block;
    animation: letterFade 0.5s ease-out forwards;
}

@keyframes iconFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes letterFade {
    from {
        opacity: 0;
        transform: translateY(10px);
        filter: blur(4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

/* ========================
   SCROLL TO TOP BUTTON
   ======================== */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--accent-color);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(251, 191, 36, 0.4);
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 30px rgba(251, 191, 36, 0.5);
}

.scroll-to-top:focus {
    outline: 3px solid var(--text-light);
    outline-offset: 3px;
}

.scroll-to-top i {
    font-size: 20px;
    color: var(--primary-color);
}

/* ========================
   ENHANCED HOVER EFFECTS
   ======================== */
.card {
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(251, 191, 36, 0.1),
            transparent);
    transition: left 0.5s ease;
}

.card:hover::before {
    left: 100%;
}

.card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 30px rgba(251, 191, 36, 0.1);
}

/* Glow effect on focus */
.card:focus-within {
    outline: 2px solid var(--accent-color);
    outline-offset: 4px;
}

/* News card entrance animation */
@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.news-card-horizontal {
    animation: slideInFromRight 0.6s ease-out backwards;
}

.news-card-horizontal:nth-child(1) {
    animation-delay: 0.1s;
}

.news-card-horizontal:nth-child(2) {
    animation-delay: 0.2s;
}

.news-card-horizontal:nth-child(3) {
    animation-delay: 0.3s;
}

.news-card-horizontal:nth-child(4) {
    animation-delay: 0.4s;
}

.news-card-horizontal:nth-child(5) {
    animation-delay: 0.5s;
}

/* Premium button hover */
.btn-primary {
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::after {
    width: 300px;
    height: 300px;
}

/* ========================
   SIDEBAR ACTIVE STATE
   ======================== */
.sidebar nav a {
    position: relative;
    padding: 10px 0;
}

.sidebar nav a.active {
    color: var(--accent-color) !important;
}

.sidebar nav a.active::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 24px;
    background: var(--accent-color);
    border-radius: 0 4px 4px 0;
}

.sidebar nav a:hover:not(.active) {
    color: var(--text-light) !important;
}

/* ========================
   ACCESSIBILITY STYLES
   ======================== */
/* Skip link for keyboard users */
.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-color);
    color: var(--primary-color);
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 700;
    z-index: 10000;
    text-decoration: none;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 20px;
}

/* Focus visible for all interactive elements */
a:focus-visible,
button:focus-visible,
select:focus-visible,
input:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 3px;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .scroll-to-top {
        transition: opacity 0.1s;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .glass-panel {
        border: 2px solid var(--text-light);
    }

    .card:hover {
        border-color: var(--accent-color);
        border-width: 3px;
    }
}

/* ========================
   LOADING SKELETON
   ======================== */
@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

.skeleton {
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0.05) 25%,
            rgba(255, 255, 255, 0.1) 50%,
            rgba(255, 255, 255, 0.05) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 8px;
}

.skeleton-card {
    height: 200px;
    margin-bottom: 20px;
}

.skeleton-text {
    height: 16px;
    margin-bottom: 10px;
    width: 80%;
}

.skeleton-text.short {
    width: 50%;
}

/* ========================
   RESPONSIVE SCROLL TO TOP
   ======================== */
@media (max-width: 768px) {
    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
    }
}