/* ============================================
   PSB WITAMA - CUSTOM CSS
   Mobile First Design
   Color Palette: WITAMA (Teal + Cream + Yellow)
   ============================================ */

:root {
    /* Primary / Brand Colors */
    --teal: #20A7B2;
    --teal-2: #40A3A8;
    --teal-light: #95D4D9;
    --teal-light-2: #B5E3E5;
    
    /* Backgrounds */
    --teal-bg: #DBF2F0;
    --teal-bg-light: #EDFCFA;
    --cream: #FBF5E1;
    --cream-2: #F6F0DC;
    
    /* Yellow / Beige */
    --yellow: #F8DC9B;
    --yellow-dark: #ECB63A;
    --beige: #E8E2C4;
    
    /* Text / Typography */
    --text: #515C54;
    --text-light: #768179;
    --black: #201F17;
    --text-placeholder: #A7B0A4;
    
    /* Border / Line */
    --border: #CFEAE8;
    
    /* Alias untuk kompatibilitas */
    --psb-primary: var(--teal);
    --psb-primary-dark: var(--teal-2);
    --psb-primary-light: var(--teal-light);
    --psb-primary-gradient: linear-gradient(135deg, #20A7B2 0%, #40A3A8 100%);
    --psb-accent: var(--yellow-dark);
    --psb-text: var(--text);
    --psb-text-muted: var(--text-light);
    --psb-bg: #f5f8f7;
    --psb-card: #ffffff;
    --psb-border: var(--border);
    --psb-radius: 12px;
    --psb-radius-lg: 16px;
    --psb-shadow: 0 2px 8px rgba(32, 167, 178, 0.08);
    --psb-shadow-lg: 0 8px 24px rgba(32, 167, 178, 0.15);
}

* {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    background: var(--psb-bg);
    color: var(--psb-text);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ============================================
   HERO SECTION
   ============================================ */
.psb-hero {
    background: var(--psb-primary-gradient);
    color: white;
    padding: 40px 20px 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.psb-hero::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: 0;
    right: 0;
    height: 100px;
    background: var(--psb-bg);
    border-radius: 50% 50% 0 0;
}

.psb-hero-logo {
    width: 72px;
    height: 72px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin-bottom: 16px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255,255,255,0.3);
}

.psb-hero-title {
    font-size: 28px;
    font-weight: 800;
    margin: 0 0 4px;
    letter-spacing: 0.5px;
}

.psb-hero-subtitle {
    font-size: 16px;
    margin: 0 0 12px;
    opacity: 0.95;
    font-weight: 400;
}

.psb-hero-ta {
    display: inline-block;
    background: rgba(255,255,255,0.25);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 16px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
}

.psb-hero-desc {
    font-size: 13px;
    opacity: 0.9;
    margin: 0;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

/* ============================================
   STATUS CARD
   ============================================ */
.psb-status-wrapper {
    margin-top: -50px;
    position: relative;
    z-index: 2;
    margin-bottom: 20px;
}

.psb-status-card {
    background: var(--psb-card);
    border-radius: var(--psb-radius-lg);
    padding: 20px;
    box-shadow: var(--psb-shadow-lg);
    display: flex;
    align-items: center;
    gap: 16px;
    border-left: 5px solid;
}

.psb-status-open {
    border-left-color: var(--teal);
}

.psb-status-closed {
    border-left-color: #dc3545;
}

.psb-status-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
    color: white;
}

.psb-status-open .psb-status-icon {
    background: linear-gradient(135deg, #20A7B2, #40A3A8);
}

.psb-status-closed .psb-status-icon {
    background: linear-gradient(135deg, #ef4444, #b91c1c);
}

.psb-status-content {
    flex: 1;
    min-width: 0;
}

.psb-status-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--psb-text-muted);
    margin-bottom: 2px;
}

.psb-status-value {
    font-size: 22px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 6px;
}

.psb-status-open .psb-status-value {
    color: var(--teal);
}

.psb-status-closed .psb-status-value {
    color: #dc2626;
}

.psb-status-period {
    font-size: 12px;
    color: var(--psb-text-muted);
    line-height: 1.4;
}

/* ============================================
   MAIN CONTENT
   ============================================ */
.psb-main {
    flex: 1;
    padding-bottom: 32px;
}

.psb-section-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--teal);
    margin: 24px 0 12px;
    display: flex;
    align-items: center;
}

/* ============================================
   ACTION CARDS
   ============================================ */
.psb-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.psb-action-card {
    background: var(--psb-card);
    border-radius: var(--psb-radius);
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: var(--psb-text);
    box-shadow: var(--psb-shadow);
    transition: all 0.25s ease;
    border: 1px solid var(--border);
}

.psb-action-card:hover,
.psb-action-card:active {
    transform: translateY(-2px);
    box-shadow: var(--psb-shadow-lg);
    border-color: var(--teal);
    color: var(--psb-text);
}

.psb-action-card:active {
    transform: translateY(0);
}

.psb-action-disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
    background: #f7fafc;
}

.psb-action-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
    flex-shrink: 0;
}

.psb-icon-primary { background: linear-gradient(135deg, #20A7B2, #40A3A8); }
.psb-icon-info    { background: linear-gradient(135deg, #95D4D9, #40A3A8); }
.psb-icon-warning { background: linear-gradient(135deg, #ECB63A, #F8DC9B); }
.psb-icon-success { background: linear-gradient(135deg, #40A3A8, #20A7B2); }
.psb-icon-disabled { background: #cbd5e0; }

.psb-icon-wa    { background: linear-gradient(135deg, #25d366, #128c7e); }
.psb-icon-email { background: linear-gradient(135deg, #95D4D9, #40A3A8); }

.psb-action-text {
    flex: 1;
    min-width: 0;
}

.psb-action-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--psb-text);
    margin-bottom: 2px;
}

.psb-action-desc {
    font-size: 12px;
    color: var(--psb-text-muted);
}

.psb-action-arrow {
    color: var(--teal-light);
    font-size: 14px;
    flex-shrink: 0;
}

/* ============================================
   TIMELINE JADWAL
   ============================================ */
.psb-timeline {
    background: var(--psb-card);
    border-radius: var(--psb-radius);
    padding: 20px;
    box-shadow: var(--psb-shadow);
    border: 1px solid var(--border);
}

.psb-timeline-item {
    display: flex;
    gap: 14px;
    padding: 12px 0;
    position: relative;
}

.psb-timeline-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 11px;
    top: 40px;
    bottom: -12px;
    width: 2px;
    background: var(--border);
}

.psb-timeline-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    border: 3px solid var(--psb-card);
    box-shadow: 0 0 0 2px currentColor;
}

.psb-dot-primary   { background: #20A7B2; color: #20A7B2; }
.psb-dot-secondary { background: #40A3A8; color: #40A3A8; }
.psb-dot-warning   { background: #ECB63A; color: #ECB63A; }
.psb-dot-success   { background: #40A3A8; color: #40A3A8; }
.psb-dot-info      { background: #95D4D9; color: #95D4D9; }

.psb-timeline-content {
    flex: 1;
    padding-top: 2px;
}

.psb-timeline-label {
    display: flex;
    align-items: center;
    font-size: 14px;
    font-weight: 700;
    color: var(--psb-text);
    margin-bottom: 3px;
}

.psb-timeline-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background: var(--teal);
    color: white;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 700;
    margin-right: 6px;
    flex-shrink: 0;
}

.psb-timeline-date {
    font-size: 12px;
    color: var(--psb-text-muted);
    line-height: 1.5;
}

/* ============================================
   INFO STATUS CARD (Keterangan Tambahan)
   ============================================ */
.psb-info-status-card {
    background: var(--psb-card);
    border-radius: var(--psb-radius-lg);
    padding: 20px;
    box-shadow: var(--psb-shadow-lg);
    display: flex;
    align-items: flex-start;
    gap: 16px;
    border-left: 5px solid var(--yellow-dark);
}

.psb-info-status-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
    color: white;
    background: linear-gradient(135deg, #ECB63A, #F8DC9B);
}

.psb-info-status-content {
    flex: 1;
    min-width: 0;
}

.psb-info-status-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--psb-text-muted);
    margin-bottom: 4px;
}

.psb-info-status-text {
    font-size: 13px;
    color: var(--psb-text);
    line-height: 1.7;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* ============================================
   INFO CARD (Konten WYSIWYG)
   ============================================ */
.psb-info-card {
    background: var(--psb-card);
    border-radius: var(--psb-radius);
    padding: 20px;
    box-shadow: var(--psb-shadow);
    border: 1px solid var(--border);
    font-size: 13px;
    color: var(--psb-text);
    line-height: 1.7;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* ============================================
   KONTAK CARD
   ============================================ */
.psb-contact-card {
    background: var(--psb-card);
    border-radius: var(--psb-radius);
    overflow: hidden;
    box-shadow: var(--psb-shadow);
    border: 1px solid var(--border);
}

.psb-contact-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    text-decoration: none;
    color: var(--psb-text);
    transition: background 0.2s;
    border-bottom: 1px solid var(--border);
}

.psb-contact-item:last-child {
    border-bottom: none;
}

.psb-contact-item:hover,
.psb-contact-item:active {
    background: var(--teal-bg-light);
    color: var(--psb-text);
}

.psb-contact-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    flex-shrink: 0;
}

.psb-contact-text {
    flex: 1;
    min-width: 0;
}

.psb-contact-label {
    font-size: 11px;
    color: var(--psb-text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.psb-contact-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--psb-text);
    word-break: break-all;
}

/* ============================================
   EMPTY STATE
   ============================================ */
.psb-empty-state {
    text-align: center;
    padding: 24px 16px;
    color: var(--psb-text-muted);
}

.psb-empty-state i {
    font-size: 32px;
    color: var(--teal-light);
    margin-bottom: 8px;
    display: block;
}

.psb-empty-state p {
    margin: 0;
    font-size: 13px;
}

/* ============================================
   FOOTER
   ============================================ */
.psb-footer {
    background: var(--teal-2);
    color: rgba(255,255,255,0.9);
    padding: 20px 16px;
    text-align: center;
    font-size: 13px;
}

.psb-footer p {
    margin: 0;
}

.psb-footer-sub {
    font-size: 11px;
    opacity: 0.8;
    margin-top: 4px;
}

/* ============================================
   RESPONSIVE - TABLET & DESKTOP
   ============================================ */
@media (min-width: 576px) {
    .psb-hero {
        padding: 56px 20px 100px;
    }
    
    .psb-hero-logo {
        width: 88px;
        height: 88px;
        font-size: 40px;
    }
    
    .psb-hero-title {
        font-size: 34px;
    }
    
    .psb-hero-subtitle {
        font-size: 18px;
    }
    
    .psb-hero-desc {
        font-size: 14px;
    }
    
    .psb-status-card {
        padding: 24px;
    }
    
    .psb-status-value {
        font-size: 26px;
    }
    
    .psb-section-title {
        font-size: 16px;
    }
    
    .psb-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    
    .psb-action-title {
        font-size: 16px;
    }
    
    .psb-action-desc {
        font-size: 13px;
    }
}

@media (min-width: 768px) {
    .psb-hero {
        padding: 64px 20px 110px;
    }
    
    .psb-hero-title {
        font-size: 40px;
    }
    
    .psb-status-wrapper {
        max-width: 720px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .psb-main {
        max-width: 720px;
        margin-left: auto;
        margin-right: auto;
    }
}