/* Modern Fluent-Inspired Dashboard Styles */

.dashboard-container {
    padding: 24px;
    max-width: 1600px;
    margin: 0 auto;
    background: transparent;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

/* Dashboard Header */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 16px;
}

.header-content h1.dashboard-title {
    margin: 0;
    font-size: 32px;
    font-weight: 600;
    color: #1a1a1a;
    letter-spacing: -0.5px;
}

.dashboard-subtitle {
    margin: 4px 0 0 0;
    font-size: 14px;
    color: #666;
}

.header-actions {
    display: flex;
    gap: 12px;
}

/* Buttons */
.btn-primary {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #0078d4 0%, #106ebe 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 120, 212, 0.2);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #106ebe 0%, #005a9e 100%);
    box-shadow: 0 4px 8px rgba(0, 120, 212, 0.3);
    transform: translateY(-1px);
}

.btn-text {
    background: none;
    border: none;
    color: #0078d4;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.btn-text:hover {
    background: rgba(0, 120, 212, 0.08);
}

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

.stat-card {
    /* Glass effect */
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-radius: 12px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.06),
        0 1px 2px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent,
        rgba(255, 255, 255, 0.8),
        transparent);
}

.stat-card:hover {
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.1),
        0 2px 4px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.75);
}

.stat-icon {
    font-size: 36px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(0, 120, 212, 0.1) 0%, rgba(0, 120, 212, 0.05) 100%);
}

.stat-card-primary .stat-icon {
    background: linear-gradient(135deg, rgba(0, 120, 212, 0.15) 0%, rgba(0, 120, 212, 0.08) 100%);
}

.stat-card-info .stat-icon {
    background: linear-gradient(135deg, rgba(16, 124, 16, 0.15) 0%, rgba(16, 124, 16, 0.08) 100%);
}

.stat-card-warning .stat-icon {
    background: linear-gradient(135deg, rgba(255, 140, 0, 0.15) 0%, rgba(255, 140, 0, 0.08) 100%);
}

.stat-card-success .stat-icon {
    background: linear-gradient(135deg, rgba(16, 124, 16, 0.15) 0%, rgba(16, 124, 16, 0.08) 100%);
}

.stat-content {
    flex: 1;
}

.stat-value {
    font-size: 32px;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 13px;
    color: #666;
    font-weight: 500;
}

/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

/* Dashboard Cards */
.dashboard-card {
    /* Glass effect */
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-radius: 12px;
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.06),
        0 1px 2px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.5);
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.dashboard-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent,
        rgba(255, 255, 255, 0.8),
        transparent);
    z-index: 1;
}

.dashboard-card:hover {
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.1),
        0 2px 4px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.75);
}

.dashboard-card.full-width {
    grid-column: 1 / -1;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    background: rgba(255, 255, 255, 0.3);
}

.card-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
}

.card-content {
    padding: 8px 0;
}

/* Activity Items */
.activity-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    transition: background 0.2s ease;
}

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

.activity-item:hover {
    background: rgba(255, 255, 255, 0.4);
}

.activity-icon {
    font-size: 24px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(0, 120, 212, 0.1) 0%, rgba(0, 120, 212, 0.05) 100%);
}

.activity-content {
    flex: 1;
}

.activity-description {
    font-size: 14px;
    color: #1a1a1a;
    margin-bottom: 4px;
}

.activity-time {
    font-size: 12px;
    color: #999;
}

.activity-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.activity-badge-grading {
    background: rgba(16, 124, 16, 0.1);
    color: #107c10;
}

.activity-badge-submission {
    background: rgba(0, 120, 212, 0.1);
    color: #0078d4;
}

.activity-badge-validation {
    background: rgba(255, 140, 0, 0.1);
    color: #ff8c00;
}

.activity-badge-assignment {
    background: rgba(138, 43, 226, 0.1);
    color: #8a2be2;
}

/* Submission Items */
.submission-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    transition: background 0.2s ease;
    cursor: pointer;
}

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

.submission-item:hover {
    background: rgba(255, 255, 255, 0.4);
}

.submission-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0078d4 0%, #106ebe 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
}

.submission-content {
    flex: 1;
}

.submission-student {
    font-size: 14px;
    font-weight: 500;
    color: #1a1a1a;
    margin-bottom: 4px;
}

.submission-assignment {
    font-size: 12px;
    color: #666;
}

.submission-time {
    font-size: 12px;
    color: #999;
}

/* Courses Grid */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding: 16px 24px 24px;
}

.course-card {
    /* Glass effect */
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.06),
        0 1px 2px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.course-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent,
        rgba(255, 255, 255, 0.8),
        transparent);
}

.course-card:hover {
    border-color: rgba(0, 120, 212, 0.3);
    box-shadow:
        0 8px 32px rgba(0, 120, 212, 0.15),
        0 2px 4px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.75);
}

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

.course-code {
    font-size: 12px;
    font-weight: 600;
    color: #0078d4;
    background: rgba(0, 120, 212, 0.1);
    padding: 4px 10px;
    border-radius: 6px;
}

.course-semester {
    font-size: 11px;
    color: #666;
}

.course-name {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 16px 0;
    line-height: 1.3;
}

.course-stats {
    display: flex;
    gap: 24px;
    margin-bottom: 16px;
}

.course-stat {
    display: flex;
    flex-direction: column;
}

.course-stat-value {
    font-size: 24px;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1;
}

.course-stat-label {
    font-size: 11px;
    color: #666;
    margin-top: 4px;
}

.course-progress {
    margin-top: 16px;
}

.progress-bar {
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #0078d4 0%, #106ebe 100%);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.progress-label {
    font-size: 11px;
    color: #666;
    text-align: right;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .content-grid {
        grid-template-columns: 1fr;
    }
}

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

    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
    }

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

    .stat-card {
        padding: 16px;
        flex-direction: column;
        text-align: center;
    }

    .courses-grid {
        grid-template-columns: 1fr;
    }
}

/* Icon styling */
.icon {
    font-size: 16px;
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .stat-card,
    .dashboard-card,
    .course-card {
        background: rgba(45, 45, 48, 0.7);
        border-color: rgba(255, 255, 255, 0.1);
        box-shadow:
            0 4px 24px rgba(0, 0, 0, 0.3),
            0 1px 2px rgba(0, 0, 0, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.08);
    }

    .stat-card::before,
    .dashboard-card::before,
    .course-card::before {
        background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.15),
            transparent);
    }

    .stat-card:hover,
    .dashboard-card:hover,
    .course-card:hover {
        background: rgba(55, 55, 58, 0.8);
        box-shadow:
            0 8px 32px rgba(0, 0, 0, 0.4),
            0 2px 4px rgba(0, 0, 0, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }

    .card-header {
        border-bottom-color: rgba(255, 255, 255, 0.08);
        background: rgba(0, 0, 0, 0.2);
    }

    .activity-item,
    .submission-item {
        border-bottom-color: rgba(255, 255, 255, 0.06);
    }

    .activity-item:hover,
    .submission-item:hover {
        background: rgba(255, 255, 255, 0.08);
    }

    .header-content h1.dashboard-title,
    .stat-value,
    .card-title,
    .course-name,
    .course-stat-value,
    .activity-description,
    .submission-student {
        color: #ffffff;
    }

    .dashboard-subtitle,
    .stat-label,
    .course-stat-label,
    .progress-label,
    .submission-assignment,
    .course-semester {
        color: rgba(255, 255, 255, 0.7);
    }

    .activity-time,
    .submission-time {
        color: rgba(255, 255, 255, 0.5);
    }

    .progress-bar {
        background: rgba(255, 255, 255, 0.1);
    }
}

/* Support for data-theme attribute */
[data-theme="dark"] .stat-card,
[data-theme="dark"] .dashboard-card,
[data-theme="dark"] .course-card {
    background: rgba(45, 45, 48, 0.7);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.3),
        0 1px 2px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .stat-card::before,
[data-theme="dark"] .dashboard-card::before,
[data-theme="dark"] .course-card::before {
    background: linear-gradient(90deg,
        transparent,
        rgba(255, 255, 255, 0.15),
        transparent);
}

[data-theme="dark"] .stat-card:hover,
[data-theme="dark"] .dashboard-card:hover,
[data-theme="dark"] .course-card:hover {
    background: rgba(55, 55, 58, 0.8);
}

[data-theme="dark"] .card-header {
    border-bottom-color: rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .activity-item,
[data-theme="dark"] .submission-item {
    border-bottom-color: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .activity-item:hover,
[data-theme="dark"] .submission-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .header-content h1.dashboard-title,
[data-theme="dark"] .stat-value,
[data-theme="dark"] .card-title,
[data-theme="dark"] .course-name,
[data-theme="dark"] .course-stat-value,
[data-theme="dark"] .activity-description,
[data-theme="dark"] .submission-student {
    color: #ffffff;
}

[data-theme="dark"] .dashboard-subtitle,
[data-theme="dark"] .stat-label,
[data-theme="dark"] .course-stat-label,
[data-theme="dark"] .progress-label,
[data-theme="dark"] .submission-assignment,
[data-theme="dark"] .course-semester {
    color: rgba(255, 255, 255, 0.7);
}

[data-theme="dark"] .activity-time,
[data-theme="dark"] .submission-time {
    color: rgba(255, 255, 255, 0.5);
}

[data-theme="dark"] .progress-bar {
    background: rgba(255, 255, 255, 0.1);
}
