/* src/components/student/StudentDashboard.css */

.dashboard-container {
    padding: 40px;
    animation: fadeIn 0.5s ease-out;
    min-height: 100vh;
    height: auto;
    overflow-y: visible;
    /* Ensure content is readable over ANY background image */
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(2px);
}

/* Light mode - override the dark overlay */
.student-container[data-theme='light'] .dashboard-container {
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(4px);
}

.welcome-header {
    margin-bottom: 48px;
}

.welcome-title {
    font-size: 56px;
    font-weight: 800;
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0 0 12px 0;
    background: var(--grad-4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.student-container[data-theme='light'] .welcome-title {
    background: var(--grad-4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.stat-card-premium {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 32px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.stat-card-premium:hover {
    transform: translateY(-10px);
    border-color: rgba(99, 102, 241, 0.4);
    background: rgba(0, 0, 0, 0.4);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.stat-card-premium::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: var(--stat-accent, #6366f1);
}

.stat-icon {
    font-size: 48px;
    margin-bottom: 20px;
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.2));
}

.stat-label {
    font-size: 11px;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.stat-value {
    font-size: 42px;
    font-weight: 800;
    font-family: 'Oswald', sans-serif;
    color: white;
    line-height: 1;
}

.content-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-bottom: 40px;
}

.panel-premium {
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 32px;
}

.student-container[data-theme='light'] .panel-premium {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(33, 38, 58, 0.1);
}

.student-container[data-theme='light'] .stat-card-premium {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(33, 38, 58, 0.12);
}

.student-container[data-theme='light'] .stat-label {
    color: rgba(33, 38, 58, 0.55);
}

.student-container[data-theme='light'] .stat-value {
    color: #21263A;
}

.student-container[data-theme='light'] .panel-title {
    color: #21263A;
}

.student-container[data-theme='light'] .activity-item {
    background: rgba(33, 38, 58, 0.05);
    border-color: rgba(33, 38, 58, 0.08);
}

.student-container[data-theme='light'] .task-item {
    background: rgba(33, 38, 58, 0.05);
}

.panel-title {
    font-size: 18px;
    font-weight: 800;
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: white;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.activity-item {
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    display: flex;
    gap: 20px;
    align-items: center;
    margin-bottom: 12px;
    transition: all 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.activity-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
}

.task-item {
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    margin-bottom: 12px;
    border-left: 5px solid var(--task-priority, #6366f1);
    transition: all 0.3s;
}

.task-item:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: scale(1.02);
}

.quick-actions-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.action-btn-premium {
    padding: 24px;
    border: none;
    border-radius: 20px;
    color: white;
    font-size: 16px;
    font-weight: 800;
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.action-btn-premium:hover {
    transform: translateY(-5px);
    filter: brightness(1.1);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

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

@media (max-width: 768px) {
    .dashboard-container {
        padding: 20px 16px;
    }

    .welcome-header {
        margin-bottom: 32px;
    }

    .welcome-title {
        font-size: 32px;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .stat-card-premium {
        padding: 20px;
        border-radius: 20px;
    }

    .stat-icon {
        font-size: 32px;
        margin-bottom: 12px;
    }

    .stat-value {
        font-size: 28px;
    }

    .panel-premium {
        padding: 20px;
    }

    .action-btn-premium {
        padding: 16px;
        font-size: 14px;
    }

    .welcome-banner {
        padding: 24px !important;
    }

    .welcome-banner > div {
        flex-direction: column;
        text-align: center;
        gap: 16px !important;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .quick-actions-bar {
        grid-template-columns: 1fr;
    }
}
