/* Dashboard Styles */

.dashboard-page {
    min-height: 100vh;
    background: #f8fafc;
    font-family: 'IBM Plex Sans', sans-serif;
}

/* Top Navigation */
.dash-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.dash-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dash-logo-img {
    width: 40px;
    height: auto;
}

.dash-logo-text {
    font-size: 1.3rem;
    font-weight: 700;
    color: navy;
}

.dash-nav {
    display: flex;
    gap: 30px;
}

.dash-nav span {
    cursor: pointer;
    color: #64748b;
    font-weight: 500;
    transition: color 0.2s;
}

.dash-nav span:hover,
.dash-nav .dash-active {
    color: navy;
}

.dash-user {
    display: flex;
    align-items: center;
    gap: 15px;
}

.dash-user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.dash-user-name {
    font-weight: 600;
    color: #1e293b;
}

.dash-user-email {
    font-size: 0.8rem;
    color: #64748b;
}

.dash-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: navy;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
}

.dash-logout {
    font-size: 1.3rem;
    color: #64748b;
    cursor: pointer;
    transition: color 0.2s;
}

.dash-logout:hover {
    color: #dc2626;
}

/* Main Content */
.dash-main {
    padding: 30px 40px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Welcome Section */
.dash-welcome {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    padding: 30px 40px;
    border-radius: 16px;
    color: white;
    margin-bottom: 30px;
}

.dash-welcome-text h1 {
    font-size: 2rem;
    margin-bottom: 8px;
}

.dash-welcome-text p {
    opacity: 0.9;
}

.dash-welcome-stats {
    display: flex;
    gap: 30px;
}

.dash-stat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255,255,255,0.15);
    padding: 15px 25px;
    border-radius: 12px;
}

.dash-stat-num {
    font-size: 2rem;
    font-weight: 700;
}

.dash-stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Sections */
.dash-section {
    margin-bottom: 40px;
}

.dash-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.dash-section-header h2 {
    font-size: 1.5rem;
    color: #1e293b;
}

.dash-view-all {
    background: none;
    border: none;
    color: #3b82f6;
    cursor: pointer;
    font-weight: 500;
}

.dash-view-all:hover {
    text-decoration: underline;
}

/* Course Cards Grid */
.dash-courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.dash-course-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}

.dash-course-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.dash-course-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.dash-course-info {
    margin-bottom: 15px;
}

.dash-course-category {
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 500;
    text-transform: uppercase;
}

.dash-course-info h3 {
    color: #1e293b;
    margin: 5px 0;
    font-size: 1.1rem;
}

.dash-course-meta {
    font-size: 0.85rem;
    color: #94a3b8;
}

/* Progress Bar */
.dash-progress-bar {
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 15px;
}

.dash-progress-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.3s;
}

/* Course Actions */
.dash-course-actions {
    display: flex;
    gap: 10px;
}

.dash-continue-btn,
.dash-details-btn,
.dash-enroll-btn {
    flex: 1;
    padding: 10px 15px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.dash-continue-btn {
    background: navy;
    color: white;
}

.dash-continue-btn:hover {
    background: #1e3a8a;
}

.dash-details-btn {
    background: #f1f5f9;
    color: #475569;
}

.dash-details-btn:hover {
    background: #e2e8f0;
}

.dash-enroll-btn {
    background: #10b981;
    color: white;
}

.dash-enroll-btn:hover {
    background: #059669;
}

/* Quick Actions */
.dash-quick-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.dash-action-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    cursor: pointer;
    transition: all 0.2s;
}

.dash-action-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.dash-action-card i {
    font-size: 2rem;
    color: #3b82f6;
    margin-bottom: 15px;
}

.dash-action-card h3 {
    font-size: 1rem;
    color: #1e293b;
    margin-bottom: 8px;
}

.dash-action-card p {
    font-size: 0.85rem;
    color: #64748b;
}

/* Footer */
.dash-footer {
    text-align: center;
    padding: 30px;
    color: #94a3b8;
    font-size: 0.9rem;
}

/* Responsive */
@media screen and (max-width: 899px) {
    .dash-top {
        flex-direction: column;
        gap: 15px;
        padding: 15px 20px;
    }
    
    .dash-nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .dash-main {
        padding: 20px;
    }
    
    .dash-welcome {
        flex-direction: column;
        gap: 20px;
        text-align: center;
        padding: 25px 20px;
    }
    
    .dash-welcome-stats {
        justify-content: center;
    }
    
    .dash-courses-grid {
        grid-template-columns: 1fr;
    }
    
    .dash-quick-actions {
        grid-template-columns: repeat(2, 1fr);
    }
}