/* program-charts.css - Styles untuk grafik program */

/* Program Stats Chart */
.program-stats-chart {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.program-stat-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 10px;
    transition: all 0.2s ease;
    margin: 0 10px;
}

/* Total Item Styling - Hanya untuk total-item, bukan first-child */
.program-stat-item.total-item {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 5px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    position: relative;
    overflow: hidden;
}

/* Tambahkan efek shimmer untuk total-item */
.program-stat-item.total-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

.program-stat-item.total-item .program-name {
    color: white;
    font-size: 0.85rem;
    font-weight: 700;
}

.program-stat-item.total-item .total-count {
    color: white;
    font-size: 0.9rem;
    font-weight: 700;
}

.program-stat-item.total-item .program-icon {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.program-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.program-info {
    min-width: 140px;
    flex-shrink: 0;
}

.program-name {
    font-weight: 700;
    color: var(--primary);
    font-size: 0.8rem;
    line-height: 1.2;
}

.total-count {
    font-weight: 600;
    color: var(--secondary);
    font-size: 0.8rem;
}

/* Progress Bar untuk Program */
.progress-container {
    flex: 1;
    min-width: 200px;
    max-width: 200px;
}

.progress-bar {
    width: 100%;
    height: 32px;
    background: #f1f3f4;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
    position: relative;
    border: 1px solid #e1e5e9;
}

.progress-fill {
    height: 100%;
    border-radius: 16px;
    position: relative;
    display: flex;
    align-items: center;
    min-width: fit-content;
    transition: width 0.6s ease-in-out;
}

/* Teks di dalam progress bar */
.progress-text {
    color: #fff;
    font-weight: 600;
    font-size: 0.75rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
    white-space: nowrap;
    pointer-events: none;
    padding: 0 12px;
    letter-spacing: 0.3px;
}

/* WARNA TETAP UNTUK SETIAP PROGRAM */
.fill-akselerasi {
    background: linear-gradient(90deg, #F44336, #D32F2F);
    box-shadow: 2px 0 8px rgba(244, 67, 54, 0.3);
}

.fill-konsultasi {
    background: linear-gradient(90deg, #2196F3, #1976D2);
    box-shadow: 2px 0 8px rgba(33, 150, 243, 0.3);
}

.fill-modal {
    background: linear-gradient(90deg, #4CAF50, #45a049);
    box-shadow: 2px 0 8px rgba(76, 175, 80, 0.3);
}

.fill-jual {
    background: linear-gradient(90deg, #9C27B0, #7B1FA2);
    box-shadow: 2px 0 8px rgba(156, 39, 176, 0.3);
}

/* Warna untuk icon juga sesuai program */
.program-stat-item:nth-child(2) .program-icon {
    background: linear-gradient(135deg, #F44336, #D32F2F);
}

.program-stat-item:nth-child(3) .program-icon {
    background: linear-gradient(135deg, #2196F3, #1976D2);
}

.program-stat-item:nth-child(4) .program-icon {
    background: linear-gradient(135deg, #4CAF50, #45a049);
}

.program-stat-item:nth-child(5) .program-icon {
    background: linear-gradient(135deg, #9C27B0, #7B1FA2);
}