/* =================================
   DASHBOARD STYLES
   ================================= */

/* Dashboard Layout */
.dashboard-container {
    background: #f8fafc;
    min-height: calc(100vh - 120px);
    padding: 2rem 0;
}

.dashboard-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.dashboard-header {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
    border: 1px solid #e5e7eb;
}

.dashboard-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.dashboard-subtitle {
    color: #6b7280;
    font-size: 1rem;
}

/* =================================
   ENHANCED STUDENT DASHBOARD
   ================================= */

/* Student Dashboard Hero Section */
.student-dashboard .learning-hero {
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    border-radius: 1.5rem;
    padding: 3rem 2rem;
    margin-bottom: 2rem;
    color: white;
    position: relative;
    overflow: hidden;
}

.student-dashboard .learning-hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
    z-index: 1;
}

.student-dashboard .hero-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    position: relative;
    z-index: 2;
}

.student-dashboard .hero-text {
    flex: 1;
}

.student-dashboard .hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.student-dashboard .hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.student-dashboard .quick-action {
    margin-top: 1.5rem;
}

.student-dashboard .btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 0.75rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.student-dashboard .btn-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Circular Progress */
.student-dashboard .hero-stats {
    text-align: center;
}

.student-dashboard .stat-circle {
    text-align: center;
}

.student-dashboard .circle-progress {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: conic-gradient(#fff 0deg, #fff var(--progress), rgba(255, 255, 255, 0.3) var(--progress), rgba(255, 255, 255, 0.3) 360deg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    position: relative;
    transition: all 0.3s ease;
}

.student-dashboard .circle-progress::before {
    content: '';
    position: absolute;
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    border-radius: 50%;
    z-index: 1;
}

.student-dashboard .circle-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    position: relative;
    z-index: 2;
}

.student-dashboard .circle-label {
    font-size: 0.875rem;
    opacity: 0.9;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

/* Enhanced Stats Section */
.student-dashboard .stats-section {
    margin-bottom: 3rem;
}

.student-dashboard .stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.student-dashboard .stat-card {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.student-dashboard .stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--stat-color, #3b82f6);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.student-dashboard .stat-card:hover::before {
    transform: scaleX(1);
}

.student-dashboard .stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.student-dashboard .stat-enrolled { --stat-color: #3b82f6; }
.student-dashboard .stat-completed { --stat-color: #10b981; }
.student-dashboard .stat-lessons { --stat-color: #8b5cf6; }
.student-dashboard .stat-streak { --stat-color: #f59e0b; }
.student-dashboard .stat-average { --stat-color: #7c3aed; }

.student-dashboard .stat-card .stat-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: white;
    background: var(--stat-color, #3b82f6);
}

.student-dashboard .stat-content {
    text-align: left;
}

.student-dashboard .stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.25rem;
}

.student-dashboard .stat-label {
    color: #6b7280;
    font-weight: 500;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Enhanced Empty State */
.student-dashboard .empty-state.enhanced {
    background: white;
    border-radius: 1.5rem;
    padding: 4rem 2rem;
    text-align: center;
    border: 1px solid #e5e7eb;
    margin: 2rem 0;
}

.student-dashboard .empty-content {
    max-width: 500px;
    margin: 0 auto;
}

.student-dashboard .empty-icon {
    width: 5rem;
    height: 5rem;
    margin: 0 auto 2rem;
    color: #3b82f6;
}

.student-dashboard .empty-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
}

.student-dashboard .empty-text {
    font-size: 1.125rem;
    color: #6b7280;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.student-dashboard .empty-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.student-dashboard .empty-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.student-dashboard .feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 0.75rem;
    border: 1px solid #e5e7eb;
}

.student-dashboard .feature-icon {
    font-size: 1.5rem;
}

/* Course Section */
.student-dashboard .courses-section {
    background: white;
    border-radius: 1.5rem;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid #e5e7eb;
}

.student-dashboard .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.student-dashboard .section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
}

.student-dashboard .section-actions .btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.student-dashboard .courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

/* Enhanced Course Cards */
.student-dashboard .course-card.enhanced {
    background: white;
    border-radius: 1rem;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
}

.student-dashboard .course-card.enhanced:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.student-dashboard .course-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.student-dashboard .course-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
}

.student-dashboard .course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.student-dashboard .course-card.enhanced:hover .course-image img {
    transform: scale(1.05);
}

.student-dashboard .course-progress-overlay {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 2;
}

.student-dashboard .progress-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: conic-gradient(#3b82f6 0deg, #3b82f6 var(--progress), rgba(255, 255, 255, 0.3) var(--progress), rgba(255, 255, 255, 0.3) 360deg);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.student-dashboard .progress-circle::before {
    content: '';
    position: absolute;
    width: 46px;
    height: 46px;
    background: white;
    border-radius: 50%;
    z-index: 1;
}

.student-dashboard .progress-circle span {
    font-size: 0.75rem;
    font-weight: 600;
    color: #1f2937;
    position: relative;
    z-index: 2;
}

.student-dashboard .level-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.25rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.student-dashboard .level-badge.beginner {
    background: #dcfce7;
    color: #16a34a;
}

.student-dashboard .level-badge.intermediate {
    background: #fef3c7;
    color: #d97706;
}

.student-dashboard .level-badge.advanced {
    background: #fef2f2;
    color: #dc2626;
}

.student-dashboard .course-content {
    padding: 1.5rem;
}

.student-dashboard .course-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.student-dashboard .progress-info {
    margin-bottom: 1rem;
}

.student-dashboard .progress-stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    color: #6b7280;
}

.student-dashboard .progress-bar.enhanced {
    width: 100%;
    height: 6px;
    background: #e5e7eb;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.student-dashboard .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6 0%, #1d4ed8 100%);
    transition: width 0.3s ease;
    border-radius: 3px;
}

/* Enhanced Status Badges */
.student-dashboard .status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    border: 1px solid;
}

.student-dashboard .status-badge.completed {
    background: #dcfce7;
    color: #16a34a;
    border-color: #bbf7d0;
}

.student-dashboard .status-badge.almost-done {
    background: #fef3c7;
    color: #d97706;
    border-color: #fde68a;
}

.student-dashboard .status-badge.in-progress {
    background: #dbeafe;
    color: #2563eb;
    border-color: #bfdbfe;
}

.student-dashboard .status-badge.not-started {
    background: #f3f4f6;
    color: #6b7280;
    border-color: #d1d5db;
}

.student-dashboard .status-icon {
    font-size: 1rem;
}

/* Activity Section */
.student-dashboard .activity-section {
    background: white;
    border-radius: 1.5rem;
    padding: 2rem;
    border: 1px solid #e5e7eb;
}

.student-dashboard .activity-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.student-dashboard .activity-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 0.75rem;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.student-dashboard .activity-item:hover {
    background: #f3f4f6;
    transform: translateX(4px);
}

.student-dashboard .activity-icon {
    font-size: 1.5rem;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
    flex-shrink: 0;
}

.student-dashboard .activity-content {
    flex: 1;
}

.student-dashboard .activity-title {
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.25rem;
}

.student-dashboard .activity-time {
    font-size: 0.875rem;
    color: #6b7280;
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.stat-card-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
}

.stat-card-users .stat-card-icon { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.stat-card-courses .stat-card-icon { background: linear-gradient(135deg, #10b981, #047857); }
.stat-card-enrollments .stat-card-icon { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }

.stat-card-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.stat-card-label {
    color: #6b7280;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
}

/* Course Grid for Dashboards */
.dashboard-course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.instructor-course-card {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.instructor-course-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.course-title-with-rating {
    margin-bottom: 1rem;
}

.course-title-text {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

/* Progress Bar Styling */
.progress-container {
    margin-bottom: 1rem;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6 0%, #1d4ed8 100%);
    transition: width 0.3s ease;
    border-radius: 4px;
}

/* Status Badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-badge.started {
    background: #dbeafe;
    color: #1e40af;
}

.status-badge.progress {
    background: #fef3c7;
    color: #92400e;
}

.status-badge.completed {
    background: #d1fae5;
    color: #065f46;
}

/* Course Stats for Instructor */
.course-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.course-stat {
    font-size: 0.875rem;
    color: #6b7280;
}

.course-stat-value {
    font-weight: 600;
    color: #1f2937;
}

/* Rating Display */
.rating-display {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stars {
    display: flex;
    gap: 0.125rem;
}

.star {
    width: 1rem;
    height: 1rem;
}

.star.filled {
    color: #fbbf24;
}

.star.empty {
    color: #d1d5db;
}

/* Action Links */
.action-links {
    display: flex;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

.action-link {
    color: #3b82f6;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
}

.action-link:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

.action-link.edit {
    color: #6b7280;
}

.action-link.edit:hover {
    color: #374151;
}

.action-link.stats {
    color: #10b981;
}

.action-link.stats:hover {
    color: #047857;
}

/* Management Section */
.management-section {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
    margin-bottom: 2rem;
}

.management-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1.5rem;
}

.management-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn.btn-secondary {
    background: #f8fafc;
    color: #374151;
    border: 1px solid #d1d5db;
}

.btn.btn-secondary:hover {
    background: #f3f4f6;
    color: #1f2937;
    border-color: #9ca3af;
}

/* Recent Reviews */
.reviews-section {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
}

.reviews-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1.5rem;
}

.review-list {
    background: #f8fafc;
    border-radius: 0.75rem;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.review-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.review-item:last-child {
    border-bottom: none;
}

.review-info {
    flex: 1;
    margin-right: 1rem;
}

.review-id {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 0.25rem;
}

.review-course {
    font-weight: 500;
    color: #1f2937;
}

.review-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-right: 1rem;
}

.review-stars {
    color: #fbbf24;
    font-size: 1.125rem;
}

.review-actions {
    display: flex;
    gap: 0.5rem;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #6b7280;
}

.empty-state-icon {
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1rem;
    color: #d1d5db;
}

.empty-state-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}

.empty-state-text {
    margin-bottom: 1.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .dashboard-content {
        padding: 0 0.5rem;
    }
    
    .dashboard-header {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .dashboard-title {
        font-size: 1.5rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stat-card {
        padding: 1.5rem;
    }
    
    .dashboard-course-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .course-stats {
        grid-template-columns: 1fr;
    }
    
    .action-links {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .management-links {
        flex-direction: column;
    }
    
    .review-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .review-rating {
        margin-right: 0;
    }
    
    /* Student Dashboard Mobile */
    .student-dashboard .learning-hero {
        padding: 2rem 1.5rem;
    }
    
    .student-dashboard .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    
    .student-dashboard .hero-title {
        font-size: 2rem;
    }
    
    .student-dashboard .hero-subtitle {
        font-size: 1rem;
    }
    
    .student-dashboard .circle-progress {
        width: 100px;
        height: 100px;
    }
    
    .student-dashboard .circle-progress::before {
        width: 75px;
        height: 75px;
    }
    
    .student-dashboard .circle-text {
        font-size: 1.25rem;
    }
    
    .student-dashboard .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .student-dashboard .stat-card {
        padding: 1rem;
    }
    
    .student-dashboard .stat-number {
        font-size: 1.5rem;
    }
    
    .student-dashboard .courses-grid {
        grid-template-columns: 1fr;
    }
    
    .student-dashboard .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .student-dashboard .empty-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .student-dashboard .empty-features {
        grid-template-columns: 1fr;
    }
    
    .student-dashboard .courses-section,
    .student-dashboard .activity-section {
        padding: 1.5rem;
    }
} 