/* Nammashale Analytics Styles */

/* Overall Statistics Container */
#overall-stats-container {
    margin-bottom: 30px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.stat-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 15px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.stat-card.positive {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.stat-card.negative {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.stat-icon {
    font-size: 28px;
    margin-bottom: 10px;
    display: block;
}

.stat-value {
    font-size: 24px;
    font-weight: bold;
    margin: 10px 0;
    display: block;
}

.stat-label {
    font-size: 12px;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 10px;
    }
    
    .stat-card {
        padding: 15px 10px;
    }
    
    .stat-icon {
        font-size: 24px;
        margin-bottom: 8px;
    }
    
    .stat-value {
        font-size: 18px;
        margin: 8px 0;
    }
    
    .stat-label {
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stat-card {
        padding: 12px 8px;
    }
    
    .stat-icon {
        font-size: 20px;
    }
    
    .stat-value {
        font-size: 16px;
    }
}

/* Chart containers styling */
.chart-container {
    background: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    height: 400px;
    display: flex;
    flex-direction: column;
}

.chart-container h3 {
    margin-top: 0;
    margin-bottom: 8px;
    color: #333;
    font-size: 18px;
    border-bottom: 2px solid #667eea;
    padding-bottom: 10px;
    flex-shrink: 0;
}

.chart-description {
    margin: 0 0 15px 0;
    color: #666;
    font-size: 13px;
    font-style: italic;
    flex-shrink: 0;
}

.chart-container canvas {
    flex: 1;
    max-height: calc(100% - 60px);
}

/* Chart layouts */
.performance-charts,
.trends-charts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .performance-charts,
    .trends-charts {
        grid-template-columns: 1fr;
    }
    
    .chart-container {
        height: 350px;
    }
}

.activity-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.activity-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    border-bottom: 1px solid #eee;
    align-items: flex-start;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-score {
    min-width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    font-size: 14px;
}

.activity-score.excellent {
    background: #11998e;
}

.activity-score.good {
    background: #667eea;
}

.activity-score.average {
    background: #ffc107;
    color: #333;
}

.activity-score.below-average {
    background: #ff9800;
}

.activity-score.poor {
    background: #f44336;
}

.activity-details {
    flex: 1;
}

.quiz-title {
    margin: 0 0 8px 0;
    color: #333;
    font-size: 16px;
    font-weight: 600;
}

.activity-meta {
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: #999;
    margin-bottom: 10px;
}

.activity-time,
.activity-duration {
    display: flex;
    align-items: center;
    gap: 5px;
}

.retry-quiz-button {
    display: inline-block;
    background: #667eea;
    color: white;
    padding: 8px 16px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    transition: background 0.3s ease;
}

.retry-quiz-button:hover {
    background: #764ba2;
    text-decoration: none;
    color: white;
}

.no-data-message {
    text-align: center;
    color: #999;
    padding: 30px;
    font-style: italic;
}

/* Progress indicators */
.progress-container {
    margin: 20px 0;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #eee;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #666;
}
