/* Progress Visualization Styles */
.progress-container {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

/* Progress Bar Styles */
.progress {
    position: relative;
    overflow: hidden;
    background-color: #e9ecef;
    border-radius: 0.25rem;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.progress-bar {
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    transition: width 0.6s ease;
    line-height: 1;
    height: 100%;
}

/* Progress Bar Sizes */
.progress-lg {
    height: 25px;
    font-size: 0.875rem;
}

.progress-sm {
    height: 6px;
    width: 100px;
    font-size: 0.6rem;
}

.progress-xs {
    height: 8px;
    font-size: 0.5rem;
}

/* Ensure smooth animations */
@keyframes progress-bar-stripes {
    0% { background-position: 1rem 0; }
    100% { background-position: 0 0; }
}

/* Striped variant */
.progress-bar-striped {
    background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, 
        transparent 25%, transparent 50%, 
        rgba(255, 255, 255, 0.15) 50%, 
        rgba(255, 255, 255, 0.15) 75%, 
        transparent 75%, transparent);
    background-size: 1rem 1rem;
    animation: progress-bar-stripes 1s linear infinite;
}

/* Progress Bar Colors */
.progress-bar-success {
    background-color: #28a745;
}

.progress-bar-info {
    background-color: #17a2b8;
}

.progress-bar-warning {
    background-color: #ffc107;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.progress-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2d3748;
    margin: 0;
}

.progress-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.progress-card {
    background: #f8fafc;
    border-radius: 10px;
    padding: 1.25rem;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.progress-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.progress-card-value {
    font-size: 2rem;
    font-weight: 700;
    color: #3b82f6;
    margin: 0.5rem 0;
}

.progress-card-label {
    font-size: 0.875rem;
    color: #64748b;
    margin: 0;
}

.progress-bar-container {
    width: 100%;
    height: 10px;
    background-color: #e2e8f0;
    border-radius: 5px;
    overflow: hidden;
    margin-top: 0.5rem;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
    border-radius: 5px;
    transition: width 0.5s ease-in-out;
    position: relative;
    overflow: hidden;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.2) 25%,
        rgba(255, 255, 255, 0.4) 50%,
        rgba(255, 255, 255, 0.2) 75%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Subject Progress */
.subject-progress {
    margin-top: 2rem;
}

.subject-progress h3 {
    font-size: 1.125rem;
    color: #2d3748;
    margin-bottom: 1rem;
}

.subject-row {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
}

.subject-name {
    width: 120px;
    font-size: 0.875rem;
    color: #4a5568;
}

.subject-progress-bar {
    flex: 1;
    margin: 0 1rem;
}

.subject-percentage {
    width: 50px;
    text-align: right;
    font-weight: 600;
    color: #3b82f6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .progress-overview {
        grid-template-columns: 1fr;
    }
    
    .subject-row {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .subject-name {
        margin-bottom: 0.5rem;
    }
    
    .subject-progress-bar {
        width: 100%;
        margin: 0.5rem 0;
    }
}

/* Dark Mode Support */
.dark .progress-container {
    background: #1e293b;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.dark .progress-card {
    background: #334155;
}

.dark .progress-title,
.dark .subject-progress h3,
.dark .subject-name {
    color: #e2e8f0;
}

.dark .progress-card-label {
    color: #94a3b8;
}

.dark .progress-bar-container {
    background-color: #334155;
}
