.learning-dashboard {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.learning-dashboard-error {
    background: #fff3cd;
    border: 1px solid #ffc107;
    color: #856404;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
}

.dashboard-loading {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.loading-spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.dashboard-header {
    margin-bottom: 40px;
}

.dashboard-title {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 8px 0;
}

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

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

.stat-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.stat-card.stat-highlight {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    color: white;
}

.stat-card.stat-highlight .stat-label {
    color: rgba(255, 255, 255, 0.9);
}

.stat-card.stat-highlight .stat-value {
    color: white;
}

.stat-card.stat-highlight .stat-unit {
    color: rgba(255, 255, 255, 0.8);
}

.stat-label {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6b7280;
    margin-bottom: 8px;
}

.stat-value {
    font-size: 36px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1;
}

.stat-unit {
    font-size: 16px;
    color: #9ca3af;
    margin-left: 4px;
}

.stat-note {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 8px;
    font-style: italic;
}

.courses-section {
    margin-top: 40px;
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 24px 0;
}

.courses-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.course-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.course-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

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

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

.course-percentage {
    font-size: 24px;
    font-weight: 700;
    color: #3b82f6;
}

.progress-bar-container {
    background: #f3f4f6;
    border-radius: 8px;
    height: 12px;
    overflow: hidden;
    margin-bottom: 12px;
}

.progress-bar {
    background: linear-gradient(90deg, #3b82f6 0%, #60a5fa 100%);
    height: 100%;
    border-radius: 8px;
    transition: width 0.6s ease;
}

.course-stats {
    display: flex;
    gap: 24px;
    font-size: 14px;
    color: #6b7280;
}

.course-stat {
    display: flex;
    align-items: center;
    gap: 6px;
}

.course-stat strong {
    color: #1a1a1a;
}

.no-courses {
    background: #f9fafb;
    border: 1px dashed #d1d5db;
    border-radius: 12px;
    padding: 48px 24px;
    text-align: center;
    color: #6b7280;
}

.no-courses p {
    margin: 0;
    font-size: 16px;
}

@media (max-width: 768px) {
    .learning-dashboard {
        margin: 20px auto;
    }
    
    .dashboard-title {
        font-size: 24px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 16px;
    }
    
    .stat-card {
        padding: 20px;
    }
    
    .stat-value {
        font-size: 28px;
    }
    
    .course-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .course-stats {
        flex-direction: column;
        gap: 8px;
    }
}