/* Progress Page Styles */
.progress-page-content {
    padding: 2rem;
}

.page-header {
    margin-bottom: 2rem;
}

.page-header h1 {
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.page-header p {
    color: var(--text-secondary);
}

/* Progress Stats */
.progress-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: var(--bg-primary);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.stat-icon.blue {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.stat-icon.green {
    background: linear-gradient(135deg, #10b981, #059669);
}

.stat-icon.purple {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.stat-icon.orange {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.stat-info h3 {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.stat-value {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* Course Progress List */
.course-progress-list {
    background: var(--bg-primary);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
}

.course-progress-list h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.progress-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: 12px;
    margin-bottom: 1rem;
    transition: all 0.3s;
}

.progress-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-md);
}

.progress-item:last-child {
    margin-bottom: 0;
}

.course-image {
    flex-shrink: 0;
}

.course-image img {
    width: 120px;
    height: 120px;
    border-radius: 8px;
    object-fit: cover;
}

.course-details {
    flex: 1;
    min-width: 0;
}

.course-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.course-details h3 {
    font-size: 1.125rem;
    color: var(--text-primary);
    margin: 0;
}

.course-badge {
    background: var(--success-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.course-instructor {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.progress-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.progress-bar-full {
    flex: 1;
    height: 10px;
    background: var(--border-color);
    border-radius: 5px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 5px;
    transition: width 0.5s ease;
    position: relative;
}

.progress-tooltip {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 0.625rem;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.3s;
}

.progress-item:hover .progress-tooltip {
    opacity: 1;
}

.progress-percent {
    font-weight: 600;
    color: var(--primary-color);
    min-width: 45px;
}

.chapter-info {
    display: flex;
    gap: 1.5rem;
}

.chapter-info span {
    font-size: 0.813rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.progress-action {
    flex-shrink: 0;
}

.btn-continue {
    padding: 0.75rem 1.5rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.btn-continue:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.btn-continue i {
    font-size: 0.875rem;
}

/* Completed Courses */
.completed-courses {
    background: var(--bg-primary);
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid var(--border-color);
}

.completed-courses h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.completed-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.completed-card {
    background: var(--bg-secondary);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
    border: 1px solid var(--border-color);
}

.completed-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.completed-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.completed-content {
    padding: 1.25rem;
}

.completed-content h4 {
    font-size: 1.125rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.completed-content p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.completion-stats {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.completion-stats span {
    font-size: 0.813rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.completion-stats i {
    color: var(--warning-color);
}

.btn-certificate {
    width: 100%;
    padding: 0.75rem;
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-certificate:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.btn-certificate i {
    font-size: 1rem;
}

/* Dark Theme */
body.dark-theme .course-progress-list,
body.dark-theme .completed-courses,
body.dark-theme .stat-card {
    background: var(--bg-primary);
}

body.dark-theme .progress-item,
body.dark-theme .completed-card {
    background: var(--bg-tertiary);
}

/* Responsive */
@media (max-width: 1024px) {
    .progress-item {
        grid-template-columns: auto 1fr;
    }
    
    .progress-action {
        grid-column: 1 / -1;
        margin-top: 1rem;
    }
    
    .btn-continue {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .progress-page-content {
        padding: 1rem;
    }
    
    .progress-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .progress-item {
        grid-template-columns: 1fr;
        text-align: left;
    }
    
    .course-image {
        display: none;
    }
    
    .course-header {
        flex-wrap: wrap;
    }
    
    .chapter-info {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .completed-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .progress-stats {
        grid-template-columns: 1fr;
    }
    
    .page-header h1 {
        font-size: 1.5rem;
    }
    
    .course-progress-list,
    .completed-courses {
        padding: 1rem;
    }
    
    .progress-item {
        padding: 1rem;
    }
}