/* Progress Page Styles */
.auth-required {
    text-align: center;
    padding: 40px;
    background-color: #f8f9fa;
    border-radius: 8px;
    margin-top: 20px;
}

.auth-required a {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
}

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

.stat-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}

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

.stat-card h3 {
    margin: 0 0 10px 0;
    color: #666;
    font-size: 0.9em;
    font-weight: 500;
    text-transform: uppercase;
}

.stat-value {
    font-size: 2em;
    font-weight: 700;
    color: #333;
}

/* Section Containers */
.section-container {
    background: white;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.section-container h2 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
}

.section-description {
    color: #666;
    font-size: 0.9em;
    margin-bottom: 15px;
}

/* Activity Chart */
.activity-chart {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    height: 150px;
    gap: 10px;
    padding: 20px 0;
}

.activity-bar-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.activity-bar {
    width: 100%;
    background: linear-gradient(to top, #007bff, #0056b3);
    border-radius: 4px 4px 0 0;
    position: relative;
    min-height: 5px;
    transition: all 0.3s;
}

.activity-bar:hover {
    opacity: 0.8;
}

.activity-count {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.9em;
    font-weight: 600;
    color: #333;
}

.activity-label {
    margin-top: 10px;
    font-size: 0.75em;
    color: #666;
    text-align: center;
}

.activity-stats {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    margin-top: 5px;
}

.activity-accuracy {
    font-size: 0.8em;
    color: #333;
    font-weight: 600;
}

.activity-time {
    font-size: 12px;
    color: #999;
}

/* Top Videos List */
.top-videos-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.video-progress-card {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s;
}

.video-progress-card:hover {
    border-color: #007bff;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.1);
}

.video-info h4 {
    margin: 0 0 5px 0;
    color: #333;
}

.video-category {
    color: #666;
    font-size: 0.9em;
    margin: 0 0 5px 0;
}

.last-practiced {
    color: #888;
    font-size: 0.85em;
    margin: 0;
    font-style: italic;
}

.video-stats {
    display: flex;
    gap: 20px;
}

.stat-item {
    text-align: center;
}

.stat-label {
    display: block;
    font-size: 0.8em;
    color: #999;
    margin-bottom: 5px;
}

.stat-value {
    display: block;
    font-weight: 600;
    color: #333;
}

.view-video-link {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
    white-space: nowrap;
}

.view-video-link:hover {
    text-decoration: underline;
}

/* Problem Sentences */
.problem-sentences-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.problem-sentence-card {
    background: #fff8f0;
    border: 1px solid #ffe5cc;
    border-radius: 8px;
    padding: 20px;
}

.sentence-text {
    font-size: 1.1em;
    margin: 0 0 15px 0;
    color: #333;
    line-height: 1.5;
    font-style: italic;
}

.sentence-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.9em;
}

.video-title {
    color: #666;
}

.practice-details {
    color: #888;
    font-size: 0.85em;
}

.practice-count {
    color: #999;
}

.accuracy-score {
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 4px;
}

.accuracy-good {
    background-color: #d4edda;
    color: #155724;
}

.accuracy-medium {
    background-color: #fff3cd;
    color: #856404;
}

.accuracy-poor {
    background-color: #f8d7da;
    color: #721c24;
}

/* No Data Messages */
.no-data {
    text-align: center;
    color: #999;
    padding: 30px;
    font-style: italic;
}

/* Responsive Design */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .video-progress-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .video-stats {
        width: 100%;
        justify-content: space-between;
    }
    
    .sentence-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .activity-chart {
        height: 120px;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* Profile Summary */
.profile-summary {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    border: 1px solid #e0e0e0;
}

.profile-summary h3 {
    margin-top: 0;
    color: #333;
    font-size: 18px;
    margin-bottom: 15px;
}

.profile-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
}

.profile-details p {
    margin: 5px 0;
    color: #666;
}

.profile-details strong {
    color: #333;
}

.edit-profile-link {
    display: inline-block;
    margin-top: 10px;
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
}

.edit-profile-link:hover {
    text-decoration: underline;
} 