/* Progress Indicators CSS for SATHEE NEET Platform */
/* Cluster Development Progress Tracking */

/* Progress Bar Styles */
.progress-container {
    margin: 20px 0;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

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

.progress-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.progress-percentage {
    font-size: 12px;
    font-weight: 500;
    color: #666;
    background: #e9ecef;
    padding: 2px 8px;
    border-radius: 12px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s ease;
    position: relative;
    background: linear-gradient(90deg, #007bff, #0056b3);
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Progress Levels */
.progress-low {
    background: linear-gradient(90deg, #dc3545, #c82333);
}

.progress-medium {
    background: linear-gradient(90deg, #ffc107, #e0a800);
}

.progress-high {
    background: linear-gradient(90deg, #28a745, #1e7e34);
}

.progress-complete {
    background: linear-gradient(90deg, #17a2b8, #138496);
}

/* Status Indicators */
.status-indicator {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-planning {
    background: #e3f2fd;
    color: #1976d2;
    border: 1px solid #bbdefb;
}

.status-development {
    background: #fff3e0;
    color: #f57c00;
    border: 1px solid #ffcc02;
}

.status-review {
    background: #f3e5f5;
    color: #7b1fa2;
    border: 1px solid #e1bee7;
}

.status-complete {
    background: #e8f5e8;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

.status-live {
    background: #e0f2f1;
    color: #00695c;
    border: 1px solid #b2dfdb;
}

/* Cluster Progress Cards */
.cluster-progress-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #e9ecef;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

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

.cluster-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.cluster-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.cluster-status {
    margin-left: 10px;
}

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

.metric-item {
    text-align: center;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
}

.metric-value {
    font-size: 24px;
    font-weight: 700;
    color: #007bff;
    display: block;
    margin-bottom: 5px;
}

.metric-label {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Milestone Progress */
.milestone-progress {
    margin: 20px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
}

.milestone-header {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
}

.milestone-timeline {
    position: relative;
    padding-left: 30px;
}

.milestone-timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e9ecef;
}

.milestone-item {
    position: relative;
    margin-bottom: 20px;
    padding-left: 20px;
}

.milestone-item::before {
    content: '';
    position: absolute;
    left: -22px;
    top: 6px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #e9ecef;
    border: 2px solid white;
    z-index: 1;
}

.milestone-item.completed::before {
    background: #28a745;
}

.milestone-item.in-progress::before {
    background: #ffc107;
}

.milestone-item.pending::before {
    background: #6c757d;
}

.milestone-content {
    background: white;
    padding: 12px;
    border-radius: 8px;
    border-left: 3px solid #e9ecef;
}

.milestone-item.completed .milestone-content {
    border-left-color: #28a745;
}

.milestone-item.in-progress .milestone-content {
    border-left-color: #ffc107;
}

.milestone-item.pending .milestone-content {
    border-left-color: #6c757d;
}

.milestone-title {
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
}

.milestone-date {
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
}

.milestone-description {
    font-size: 14px;
    color: #666;
    margin: 0;
}

/* Loading States */
.loading-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 4px;
}

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

.loading-line {
    height: 12px;
    margin-bottom: 8px;
}

.loading-line.short {
    width: 60%;
}

.loading-line.medium {
    width: 80%;
}

.loading-line.long {
    width: 100%;
}

/* Compact Progress Indicators */
.progress-compact {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 20px;
    font-size: 12px;
}

.progress-compact-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #e9ecef;
}

.progress-compact-dot.active {
    background: #007bff;
}

.progress-compact-dot.completed {
    background: #28a745;
}

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

.circular-progress svg {
    transform: rotate(-90deg);
}

.circular-progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cluster-metrics {
        grid-template-columns: repeat(2, 1fr);
    }

    .progress-container {
        padding: 10px;
    }

    .metric-value {
        font-size: 20px;
    }

    .milestone-timeline {
        padding-left: 20px;
    }

    .milestone-item::before {
        left: -16px;
    }
}

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

    .progress-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .progress-title {
        font-size: 13px;
    }

    .metric-value {
        font-size: 18px;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.slide-up {
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Accessibility */
.progress-bar[aria-label]::before {
    content: attr(aria-label);
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Focus Styles */
.progress-compact:focus,
.status-indicator:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .progress-container,
    .cluster-progress-card {
        background: white;
        box-shadow: none;
        border: 1px solid #ccc;
    }

    .progress-fill {
        background: #333 !important;
    }

    @keyframes shimmer {
        from, to { transform: translateX(0); }
    }
}