/* Learning Progress Styles */
.learning-progress-panel {
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    margin-bottom: 20px;
}

/* Progress Overview */
.progress-overview {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px;
    background: var(--bg-primary);
    border-radius: var(--radius);
}

.circular-progress {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: conic-gradient(var(--primary) 0% 0%, var(--border) 0% 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    animation: progressAnimation 1s ease-out;
}

.circular-progress::before {
    content: '';
    position: absolute;
    width: 100px;
    height: 100px;
    background: var(--bg-card);
    border-radius: 50%;
}

.inner-circle {
    position: relative;
    z-index: 1;
    text-align: center;
}

.progress-percentage {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    display: block;
}

.circular-progress small {
    font-size: 12px;
    color: var(--text-muted);
    display: block;
    margin-top: 5px;
}

@keyframes progressAnimation {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.progress-stats-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    min-width: 250px;
}

.progress-stat {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    border-left: 4px solid var(--primary);
    transition: var(--transition);
}

.progress-stat:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.progress-stat .stat-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
}

.progress-stat:nth-child(2) .stat-icon {
    background: linear-gradient(135deg, var(--danger), #f97316);
}

.progress-stat:nth-child(3) .stat-icon {
    background: linear-gradient(135deg, var(--success), #10b981);
}

.progress-stat:nth-child(4) .stat-icon {
    background: linear-gradient(135deg, var(--warning), #f59e0b);
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

.stat-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Weekly Progress */
.weekly-progress-section {
    background: var(--bg-primary);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 20px;
}

.weekly-progress-section h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.progress-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.metric {
    background: var(--bg-card);
    padding: 15px;
    border-radius: var(--radius-sm);
}

.metric-label {
    display: block;
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.metric-bar {
    height: 8px;
    background: var(--border);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.metric-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 4px;
    transition: width 1s ease;
}

.metric-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    float: right;
}

.chart-container {
    height: 200px;
    position: relative;
    margin-top: 20px;
}

/* Progress Data Section */
.progress-data-section {
    background: var(--bg-primary);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 20px;
    min-height: 150px;
}

.placeholder-content {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}

.placeholder-content i {
    font-size: 48px;
    margin-bottom: 15px;
    color: var(--primary-light);
}

.placeholder-content p {
    font-size: 16px;
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.placeholder-content small {
    font-size: 14px;
}

.detailed-stats h4 {
    margin-bottom: 15px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.detailed-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.detailed-stat {
    background: var(--bg-card);
    padding: 15px;
    border-radius: var(--radius-sm);
    text-align: center;
}

.detailed-stat span {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.detailed-stat strong {
    display: block;
    font-size: 20px;
    color: var(--text-primary);
    font-weight: 700;
}

/* Smart Recommendations */
.smart-recommendations {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1));
    border-radius: var(--radius);
    padding: 20px;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.smart-recommendations h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.analyzing-state {
    text-align: center;
    padding: 30px 20px;
}

.analyzing-state i {
    font-size: 36px;
    color: var(--primary);
    margin-bottom: 15px;
    animation: spin 2s linear infinite;
}

.analyzing-state p {
    color: var(--text-secondary);
    font-size: 16px;
}

/* Recommendations List */
.recommendations-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.recommendation-item {
    background: var(--bg-card);
    padding: 15px;
    border-radius: var(--radius-sm);
    border-left: 4px solid var(--primary);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    transition: var(--transition);
}

.recommendation-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow);
}

.recommendation-icon {
    width: 36px;
    height: 36px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 16px;
}

.recommendation-content {
    flex: 1;
}

.recommendation-content h4 {
    font-size: 14px;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.recommendation-content p {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.4;
}

/* Responsive Design */
@media (max-width: 768px) {
    .progress-overview {
        flex-direction: column;
        text-align: center;
    }
    
    .progress-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .progress-metrics {
        grid-template-columns: 1fr;
    }
    
    .detailed-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .detailed-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .circular-progress {
        width: 100px;
        height: 100px;
    }
    
    .circular-progress::before {
        width: 80px;
        height: 80px;
    }
    
    .progress-percentage {
        font-size: 20px;
    }
}