/* PODIUM LEADERBOARD */
.podium-container {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 1.5rem;
    padding: 3rem 1rem 1rem 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.podium-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 180px;
    position: relative;
    transition: var(--transition-smooth);
}

.podium-column:hover {
    transform: translateY(-5px);
}

.podium-block {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.15);
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: none;
    position: relative;
}

/* PODIUM SILVER (Rank 2) */
.podium-silver .podium-block {
    height: 120px;
    background: linear-gradient(180deg, rgba(226, 232, 240, 0.1) 0%, rgba(226, 232, 240, 0.02) 100%);
    border-color: rgba(226, 232, 240, 0.2);
    box-shadow: 0 0 20px rgba(226, 232, 240, 0.05);
}

/* PODIUM GOLD (Rank 1) */
.podium-gold .podium-block {
    height: 170px;
    background: linear-gradient(180deg, rgba(234, 179, 8, 0.15) 0%, rgba(234, 179, 8, 0.02) 100%);
    border-color: rgba(234, 179, 8, 0.3);
    box-shadow: 0 0 30px rgba(234, 179, 8, 0.1);
}

/* PODIUM BRONZE (Rank 3) */
.podium-bronze .podium-block {
    height: 90px;
    background: linear-gradient(180deg, rgba(217, 119, 6, 0.1) 0%, rgba(217, 119, 6, 0.02) 100%);
    border-color: rgba(217, 119, 6, 0.2);
    box-shadow: 0 0 20px rgba(217, 119, 6, 0.05);
}

.podium-column-placeholder {
    width: 100%;
    max-width: 180px;
}

.podium-crown {
    font-size: 2rem;
    position: absolute;
    top: -55px;
    animation: crown-bounce 2s infinite ease-in-out;
}

@keyframes crown-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.podium-avatar {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.podium-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-main);
    text-align: center;
    margin-bottom: 0.25rem;
    max-width: 140px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.podium-score {
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 1rem;
}

/* KPI REPORT CARD */
.kpi-report-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-glass);
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

.kpi-report-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
}

.kpi-report-card-info {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.kpi-avatar-large {
    font-size: 3.5rem;
}

.kpi-score-large-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid var(--primary);
    background: radial-gradient(circle, rgba(6, 182, 212, 0.1) 0%, transparent 80%);
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.kpi-score-large-value {
    font-size: 2.25rem;
    font-weight: 900;
    color: #ffffff;
}

.kpi-score-large-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* METRICS & PROGRESS BAR */
.kpi-metric-item {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.02);
    padding: 1.25rem;
    border-radius: 16px;
}

.kpi-metric-labels {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.progress-bar-bg {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 1s ease-in-out;
}

.progress-cyan {
    background: linear-gradient(90deg, #06b6d4 0%, #3b82f6 100%);
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.3);
}

.progress-success {
    background: linear-gradient(90deg, #10b981 0%, #059669 100%);
    box-shadow: 0 0 10px rgba(16, 105, 129, 0.3);
}

.progress-warning {
    background: linear-gradient(90deg, #f59e0b 0%, #d97706 100%);
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.3);
}

.kpi-report-footer-eval {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 1.25rem;
}

/* RESPONSIVE LAYOUT FOR MOBILE */
@media (max-width: 768px) {
    .kpi-report-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .podium-container {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
        padding-top: 1.5rem;
    }
    
    .podium-column {
        max-width: 100%;
        width: 100%;
    }
    
    .podium-block {
        height: 60px !important;
        border-radius: 12px;
    }
    
    .podium-crown {
        top: -45px;
    }
}

/* === KPI TABLE COLUMN UTILITIES === */
.stat-value-performer {
    max-width: 200px;
}

.kpi-th-rank {
    width: 80px;
}

.kpi-th-action {
    width: 100px;
}

.kpi-badge-score {
    font-size: 14px;
    padding: 4px 10px;
}

/* Badge bonus Gangguan Massal di rapor KPI */
.kpi-mass-badge {
    display: inline-block;
    background: rgba(245, 158, 11, 0.15);
    color: var(--warning);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 20px;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 1px 7px;
    letter-spacing: 0.04em;
    vertical-align: middle;
}

/* KPI Date Filter Bar Styling */
.kpi-filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
}

.kpi-filter-inputs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.kpi-filter-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.kpi-filter-group label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
}

.date-input-cyber {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border-glass);
    color: var(--text-main);
    border-radius: 8px;
    padding: 0.4rem 0.75rem;
    font-size: 0.85rem;
    outline: none;
    transition: var(--transition-smooth);
    min-height: 38px;
    box-sizing: border-box;
}

.date-input-cyber:focus {
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.2);
}

.kpi-filter-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Responsiveness on mobile screens */
@media (max-width: 768px) {
    .kpi-filter-bar {
        flex-direction: column;
        align-items: stretch;
        padding: 1.25rem 1rem;
        gap: 1rem;
    }
    .kpi-filter-inputs {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    .kpi-filter-group {
        justify-content: space-between;
    }
    .kpi-filter-group input {
        flex: 1;
        max-width: 220px;
    }
    .kpi-filter-actions {
        justify-content: flex-end;
        width: 100%;
        margin-top: 0.5rem;
    }
    .kpi-filter-actions button {
        flex: 1;
        justify-content: center;
    }
}

/* ==========================================================================
   KPI EVALUATION GUIDE STYLING (Halaman Panduan Resmi Perhitungan KPI)
   ========================================================================== */
.kpi-guide-container {
    padding: 0.5rem;
}

.kpi-guide-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 1.25rem;
    margin-bottom: 1.5rem;
}

.kpi-guide-title-group h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.kpi-guide-title-group p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0.35rem 0 0 0;
}

.kpi-formula-hero {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(6, 182, 212, 0.03) 100%);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 16px;
    padding: 1.75rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px 0 rgba(99, 102, 241, 0.04);
    margin-bottom: 2rem;
    backdrop-filter: blur(8px);
}

.kpi-formula-hero h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.kpi-formula-hero p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0.75rem 0 0 0;
    line-height: 1.5;
}

.kpi-formula-display {
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-left: 4px solid var(--primary);
    padding: 1.25rem;
    border-radius: 12px;
    text-align: center;
    margin-top: 1.25rem;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.3);
}

.kpi-formula-display code {
    font-size: 1.15rem;
    font-family: 'Fira Code', 'Courier New', monospace;
    font-weight: 700;
    color: #a5b4fc;
    letter-spacing: 0.5px;
    text-shadow: 0 0 10px rgba(165, 180, 252, 0.25);
}

.kpi-roles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.kpi-role-card {
    background: rgba(30, 41, 59, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 1.5rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    position: relative;
    overflow: hidden;
}

.kpi-role-card:hover {
    transform: translateY(-4px);
    border-color: rgba(99, 102, 241, 0.25);
    box-shadow: 0 12px 24px -10px rgba(99, 102, 241, 0.15);
    background: rgba(30, 41, 59, 0.5);
}

.kpi-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 1rem;
}

.kpi-icon-wrapper {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    font-size: 1.2rem;
}

.kpi-icon-wrapper.cs { background: rgba(34, 197, 94, 0.1); color: #22c55e; }
.kpi-icon-wrapper.mkt { background: rgba(99, 102, 241, 0.1); color: #6366f1; }
.kpi-icon-wrapper.tech { background: rgba(234, 179, 8, 0.1); color: #eab308; }
.kpi-icon-wrapper.sv { background: rgba(239, 68, 68, 0.1); color: #ef4444; }
.kpi-icon-wrapper.mgr { background: rgba(168, 85, 247, 0.1); color: #a855f7; }

.kpi-card-title-group {
    display: flex;
    flex-direction: column;
}

.kpi-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

.kpi-badge-role {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
    margin-top: 0.35rem;
    display: inline-block;
    width: max-content;
    letter-spacing: 0.02em;
}

.kpi-badge-role.cs { background: rgba(34, 197, 94, 0.15); color: #4ade80; border: 1px solid rgba(34, 197, 94, 0.3); }
.kpi-badge-role.mkt { background: rgba(99, 102, 241, 0.15); color: #818cf8; border: 1px solid rgba(99, 102, 241, 0.3); }
.kpi-badge-role.tech { background: rgba(234, 179, 8, 0.15); color: #facc15; border: 1px solid rgba(234, 179, 8, 0.3); }
.kpi-badge-role.sv { background: rgba(239, 68, 68, 0.15); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.3); }
.kpi-badge-role.mgr { background: rgba(168, 85, 247, 0.15); color: #c084fc; border: 1px solid rgba(168, 85, 247, 0.3); }

.kpi-role-metrics {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.metric-group {
    background: rgba(15, 23, 42, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    padding: 1rem;
    transition: all 0.2s ease;
}

.metric-group:hover {
    border-color: rgba(255, 255, 255, 0.06);
    background: rgba(15, 23, 42, 0.35);
}

.metric-group-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
    letter-spacing: 0.3px;
}

.metric-group-header .title {
    font-weight: 700;
}

.metric-group-header .title.cyan { color: #22d3ee; }
.metric-group-header .title.success { color: #4ade80; }
.metric-group-header .title.indigo { color: #818cf8; }

.metric-group-header .badge-val {
    font-size: 0.7rem;
    background: rgba(255, 255, 255, 0.05);
    color: #e2e8f0;
    padding: 1px 6px;
    border-radius: 4px;
    font-family: monospace;
}

.metric-group-desc {
    font-size: 0.75rem;
    color: #94a3b8;
    line-height: 1.45;
    margin: 0 0 0.5rem 0;
}

.metric-group-details {
    list-style-type: none;
    padding-left: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.metric-group-details li {
    font-size: 0.72rem;
    color: #94a3b8;
    position: relative;
    padding-left: 0.85rem;
    line-height: 1.4;
}

.metric-group-details li::before {
    content: '•';
    position: absolute;
    left: 0.1rem;
    color: var(--primary);
    font-weight: bold;
}

.metric-group-details li b {
    color: #e2e8f0;
}

.kpi-formula-box-mini {
    background: rgba(168, 85, 247, 0.08);
    border-left: 3px solid #a855f7;
    padding: 0.6rem;
    border-radius: 6px;
    text-align: center;
    margin: 0.5rem 0;
}

.kpi-formula-box-mini code {
    font-size: 0.78rem;
    font-family: monospace;
    color: #d8b4fe;
    font-weight: 700;
}

/* --- KPI BADGE ROLE CUSTOM STYLES --- */
.kpi-role-teknisi {
    background: rgba(234, 179, 8, 0.15) !important;
    color: #b45309 !important;
}
.kpi-role-cs {
    background: rgba(34, 197, 94, 0.15) !important;
    color: #15803d !important;
}
.kpi-role-marketing {
    background: rgba(99, 102, 241, 0.15) !important;
    color: #4338ca !important;
}
.kpi-role-supervisor {
    background: rgba(239, 68, 68, 0.15) !important;
    color: #dc2626 !important;
}
.kpi-role-manager {
    background: rgba(168, 85, 247, 0.15) !important;
    color: #7c3aed !important;
}

