/* ============================================================
   SECTIONS AND CARDS
   ============================================================ */
.section {
    background: var(--bg-white);
    border: none;
    border-radius: var(--r-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    position: relative;
    margin-bottom: 20px;
}

.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    border-radius: var(--r-lg) var(--r-lg) 0 0;
}

.section#secThrusts::before {
    background: linear-gradient(90deg, var(--sky), var(--violet));
}

.section#secTargets::before {
    background: linear-gradient(90deg, var(--kpm-gold), var(--amber));
}

.section-head {
    padding: 20px 24px 16px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 1px solid var(--border-light);
}

.section-head h2 {
    font-size: 15px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-dark);
}

.sh-icon {
    width: 32px;
    height: 32px;
    border-radius: var(--r-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.sh-sub {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
    font-weight: 400;
}

.sh-badge {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 700;
    white-space: nowrap;
}

/* ============================================================
   THRUSTS
   ============================================================ */
.thrusts-grid {
    padding: 22px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.thrust-card {
    text-align: center;
    padding: 24px 16px 20px;
    border-radius: var(--r-md);
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.thrust-card:hover {
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.ring-wrap {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 12px;
}

.ring-wrap svg {
    width: 100px;
    height: 100px;
    transform: rotate(-90deg);
}

.ring-bg {
    fill: none;
    stroke: var(--bg-muted);
    stroke-width: 8;
}

.ring-fill {
    fill: none;
    stroke-width: 8;
    stroke-linecap: round;
    transition: stroke-dashoffset 1.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.ring-val {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 22px;
    font-weight: 800;
}

.ring-val span {
    font-size: 11px;
    font-weight: 400;
    color: var(--text-faint);
}

.ts-id {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.5px;
    padding: 3px 12px;
    border-radius: 20px;
    margin-bottom: 8px;
    display: inline-block;
}

.ts-name {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.4;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.ts-count {
    margin-top: 8px;
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

.thrust-btn {
    margin-top: 14px;
    background: var(--kpm-blue);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    justify-content: center;
}

.thrust-btn:hover {
    background: var(--kpm-royal);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

body.dark-mode .thrust-btn {
    background: #3b82f6;
}

body.dark-mode .thrust-btn:hover {
    background: #2563eb;
}

/* ============================================================
   TARGETS
   ============================================================ */
.targets-grid {
    padding: 22px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.target-card {
    background: var(--bg-white);
    border: none;
    border-radius: var(--r-md);
    padding: 16px;
    transition: all 0.25s;
    position: relative;
    border-left: 4px solid var(--border);
    box-shadow: 0 4px 14px rgba(60, 64, 131, 0.04);
}

.target-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.tc-cat {
    font-size: 8px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
}

.tc-title {
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 12px;
    min-height: 32px;
    color: var(--text-dark);
}

.tc-numbers {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 8px;
}

.tc-now {
    font-size: 26px;
    font-weight: 800;
    line-height: 1;
}

.tc-goal {
    font-size: 10.5px;
    color: var(--text-muted);
    text-align: right;
}

.tc-goal strong {
    color: var(--text-secondary);
    font-weight: 700;
}

.bar {
    height: 6px;
    background: var(--bg-muted);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 7px;
}

.bar-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 1.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.bar-green {
    background: linear-gradient(90deg, #10B981, #34D399);
}

.bar-amber {
    background: linear-gradient(90deg, #F59E0B, #FBBF24);
}

.bar-red {
    background: linear-gradient(90deg, #EF4444, #F87171);
}

.tc-badge {
    font-size: 9px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.badge-green {
    background: var(--green-bg);
    color: var(--green-dark);
    border: 1px solid var(--green-border);
}

.badge-amber {
    background: var(--amber-bg);
    color: var(--amber-dark);
    border: 1px solid var(--amber-border);
}

.badge-red {
    background: var(--red-bg);
    color: var(--red-dark);
    border: 1px solid var(--red-border);
}

/* ============================================================
   STATUS LABELS
   ============================================================ */
.status-label {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
}

.status-label.jadual {
    background: var(--green-bg);
    color: var(--green-dark);
    border: 1px solid rgba(16, 185, 129, .2);
}

.status-urgent {
    animation: urgentPulse 2s infinite;
}

@keyframes urgentPulse {
    0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4); }
    70% { box-shadow: 0 0 0 6px rgba(245, 158, 11, 0); }
    100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}

.status-label.tangguh {
    background: var(--amber-bg);
    color: var(--amber-dark);
    border: 1px solid rgba(245, 158, 11, .2);
}

.status-label.lewat {
    background: var(--red-bg);
    color: var(--red-dark);
    border: 1px solid var(--red-border);
}

.status-label.siap {
    background: var(--blue-bg);
    color: var(--royal);
    border: 1px solid var(--blue-border);
}

/* ============================================================
   PRAKARSA ITEMS
   ============================================================ */
.prakarsa-item {
    border: none;
    border-radius: var(--r-md);
    margin-bottom: 16px;
    overflow: hidden;
    background: var(--bg-white);
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 14px rgba(60, 64, 131, 0.04);
}

.prakarsa-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.prakarsa-head {
    background: var(--bg-white);
    padding: 16px 20px;
    position: relative;
    cursor: pointer;
    user-select: none;
    border-bottom: 1px solid var(--border-light);
}

.prakarsa-head:hover {
    background: var(--bg-hover);
}

.prakarsa-head::after {
    content: '▼';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-faint);
    font-size: 12px;
    transition: transform 0.3s;
}

.prakarsa-item.open .prakarsa-head::after {
    transform: translateY(-50%) rotate(180deg);
}

.prakarsa-head-main {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-right: 24px;
}

.prakarsa-kod {
    font-family: 'SF Mono', monospace;
    font-size: 12px;
    font-weight: 700;
    color: var(--royal);
    margin-bottom: 2px;
    text-transform: uppercase;
}

.prakarsa-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.4;
}

.prakarsa-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    flex-wrap: wrap;
    gap: 12px;
}

.prakarsa-meta {
    font-size: 13px;
    color: var(--text-sec);
    display: flex;
    gap: 12px;
    align-items: center;
}

.prakarsa-status-row {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 13px;
    color: var(--text-sec);
}

.prakarsa-body {
    padding: 20px;
    display: none;
    background: var(--bg-page);
}

.prakarsa-item.open .prakarsa-body {
    display: block;
}

.prakarsa-item.open .prakarsa-head {
    background: var(--bg-white);
    border-bottom: 2px solid var(--border);
}

/* ============================================================
   KPI GRID
   ============================================================ */
.kpi-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    margin-top: 16px;
}

.kpi-box {
    border: none;
    border-radius: var(--r-md);
    padding: 16px;
    background: var(--bg-white);
    box-shadow: 0 4px 14px rgba(60, 64, 131, 0.04);
}

.kpi-box-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.kpi-box-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
}

.kpi-box-kod {
    font-size: 12px;
    font-weight: 700;
    color: var(--teal-dark);
    background: rgba(20, 184, 166, .1);
    padding: 2px 8px;
    border-radius: 6px;
    border: 1px solid rgba(20, 184, 166, .2);
}

.kpi-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 12px;
    background: var(--bg-hover);
    padding: 12px;
    border-radius: var(--r-sm);
    border: none;
}

.stat-col {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-val {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-dark);
}

.stat-lbl {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-faint);
    text-transform: uppercase;
    letter-spacing: .5px;
}

.kpi-progress {
    margin-top: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.kpi-prog-bar {
    flex: 1;
    height: 8px;
    background: var(--border);
    border-radius: 4px;
    overflow: hidden;
}

.kpi-prog-fill {
    height: 100%;
    border-radius: 4px;
    transition: width .5s;
    background: var(--teal);
}

.kpi-prog-val {
    font-size: 14px;
    font-weight: 800;
    min-width: 45px;
    text-align: right;
    color: var(--teal-dark);
}

.progress-track {
    margin-top: 10px;
}

.progress-header {
    display: flex;
    justify-content: space-between;
}

.comment-box {
    margin-top: 10px;
    padding: 12px;
    background: var(--bg-hover);
    border-left: 3px solid var(--gold);
    border-radius: 4px;
    font-size: 13px;
    color: var(--text-sec);
}

/* ============================================================
   LOADING / ERROR
   ============================================================ */
#loading {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px;
}

.skeleton-item {
    height: 80px;
    background: linear-gradient(90deg, var(--bg-white) 25%, var(--bg-hover) 50%, var(--bg-white) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--r-md);
    box-shadow: 0 4px 14px rgba(60, 64, 131, 0.04);
}

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

#error-msg {
    display: none;
    margin: 20px 0;
    padding: 16px;
    background: var(--red-bg);
    color: var(--red-dark);
    border: 1px solid var(--red-border);
    border-radius: var(--r-sm);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-lapor {
    background: var(--bg-white);
    border: 1px solid var(--border);
    color: var(--navy);
    padding: 10px 16px;
    min-height: 44px;
    border-radius: var(--r-sm);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-lapor:hover {
    background: var(--blue-bg);
    color: var(--royal);
    border-color: var(--blue-border);
}

/* ============================================================
   RESPONSIVE OVERRIDES
   ============================================================ */
@media (max-width: 900px) {
    .thrusts-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .targets-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .thrusts-grid {
        grid-template-columns: 1fr;
    }

    .targets-grid {
        grid-template-columns: 1fr;
    }
}
