/* Enhanced Progress Visualization Styles */

.enhanced-progress-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 12px;
    margin: 20px 0;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

.progress-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.stat-card {
    background: rgba(255,255,255,0.1);
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

.stat-number {
    font-size: 2em;
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9em;
    opacity: 0.9;
}

/* Circular Progress Chart */
.circular-progress {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
}

.circular-progress svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.circular-progress .bg-circle {
    fill: none;
    stroke: rgba(255,255,255,0.2);
    stroke-width: 8;
}

.circular-progress .progress-circle {
    fill: none;
    stroke: #4CAF50;
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 377; /* 2 * π * 60 */
    stroke-dashoffset: 377;
    transition: stroke-dashoffset 1s ease-in-out;
}

.circular-progress .progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.5em;
    font-weight: bold;
    color: white;
}

/* Module Progress Bars */
.module-progress-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.module-progress-item {
    background: rgba(255,255,255,0.1);
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 10px;
}

.module-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.module-name {
    font-weight: 600;
    font-size: 0.95em;
}

.module-percentage {
    font-size: 0.9em;
    opacity: 0.9;
}

.module-progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255,255,255,0.2);
    border-radius: 3px;
    overflow: hidden;
}

.module-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #8BC34A);
    border-radius: 3px;
    transition: width 0.8s ease-out;
    width: 0%;
}

/* Achievement Badges */
.achievements-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.2);
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 10px;
    margin-top: 15px;
}

.achievement-badge {
    text-align: center;
    padding: 10px;
    border-radius: 8px;
    background: rgba(255,255,255,0.1);
    transition: all 0.3s ease;
}

.achievement-badge.earned {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #333;
    transform: scale(1.05);
}

.achievement-badge:hover {
    transform: scale(1.1);
}

.achievement-icon {
    font-size: 1.5em;
    margin-bottom: 5px;
    display: block;
}

.achievement-name {
    font-size: 0.8em;
    font-weight: 600;
}

/* Time tracking */
.time-stats {
    display: flex;
    justify-content: space-around;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255,255,255,0.2);
}

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

.time-value {
    font-size: 1.2em;
    font-weight: bold;
    display: block;
}

.time-label {
    font-size: 0.8em;
    opacity: 0.8;
}

/* Responsive design */
@media (max-width: 768px) {
    .progress-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .circular-progress {
        width: 100px;
        height: 100px;
    }
    
    .achievements-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
