@import url('fonts.css');

/* ==========================================================================
   PROMISE CAPI STANDARD CSS - CORE & INDEX LAYOUT
   ========================================================================= */

/* 1. Reset & Global Layout */
html, body {
    height: 100%;       
    margin: 0;
    padding: 0;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;   /* Mengunci halaman utama tetap pas satu layar */
}

body {
    background-image: var(--bg-image-url); 
    background-size: cover;      
    background-position: center;     
    background-repeat: no-repeat;    
    background-attachment: fixed;
    background-color: #1e2229;       
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    height: 100vh;      
    overflow-x: hidden; 
}

/* --- 1. Base Reset Pembungkus Utama (Tetap 1 Layar Penuh) --- */
.flex-center-page {
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Mendistribusikan Logo di atas, Menu di tengah, Credit di bawah */
    align-items: center;
    padding: 20px 15px; /* Memberikan padding atas bawah sebesar 20px dari tepi layar */
    height: 100vh;           
    box-sizing: border-box;
    position: relative;
}
/* --- 2. Logo Wrapper (Kunci Aman di Atas Layar) --- */
body .logo-wrapper {
    position: absolute;
    top: 20px !important; /* Dikunci aman 20px dari atas layar */
    left: 50% !important;
    transform: translateX(-50%) !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    z-index: 100 !important; /* Dinaikkan z-index agar selalu berada di lapisan paling atas */
    width: auto !important; /* Mencegah Bootstrap memaksakan lebar kontainer menjadi 100% */
}

body .logo-promise {
    background-image: var(--logo-image-url) !important;
    background-size: contain !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    width: 450px !important; /* Dikunci mati ukuran lebarnya */
    height: 120px !important; /* Dikunci mati ukuran tingginya */
    margin: 0px 0px -15px 0px !important; /* Menarik tagline naik agar rapat sempurna */
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3)) !important;
}

/* --- 3. MAKSIMALKAN DORONGAN TURUN PADA MENU CONTAINER --- */
body .promise-menu-container {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important; 
    width: 100% !important;
    max-width: 400px !important;
    
    /* PERUBAHAN UTAMA: */
    margin: 0 auto !important;
    margin-top: 130px !important; /* Tetap didorong turun 150px agar aman berada di bawah logo besar */
    margin-bottom: 35px !important; /* Jarak aman sebelum menyentuh teks credit bawah */
    
    box-sizing: border-box !important;
    z-index: 90 !important;
}

/* 4. Tombol Menu Utama (Komponen Wide) - Padding dirapatkan sedikit */
.btn-capi-wide {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 12px 18px !important; /* Padding vertikal diturunkan dari 15px menjadi 12px */
    border-radius: 14px !important;
    color: #ffffff !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-capi-wide:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25), inset 0 1px 1px rgba(255, 255, 255, 0.3) !important;
    filter: brightness(108%) !important;
}

.menu-icon-text {
    display: flex !important;
    align-items: center !important;
    gap: 18px !important;
}

.menu-icon-text i {
    font-size: 26px !important;
    opacity: 0.95;
}

.menu-info {
    display: flex !important;
    flex-direction: column !important;
    text-align: left !important;
}

.menu-title {
    font-size: 15px !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px !important;
}

.menu-desc {
    font-size: 11px !important;
    opacity: 0.75 !important;
    margin-top: 2px !important;
    font-weight: 400 !important;
}

.arrow-right {
    font-size: 16px !important;
    opacity: 0.7;
    transition: transform 0.2s !important;
}

.btn-capi-wide:hover .arrow-right {
    transform: translateX(4px) !important;
    opacity: 1;
}

/* 4. Gradasi Warna Tombol Utama */
.tile-blue-interview {
    background: linear-gradient(135deg, #007bdc 0%, #00569d 100%) !important;
    border-bottom: 3px solid #003e70 !important;
}
.tile-orange-spv {
    background: linear-gradient(135deg, #fbc531 0%, #e1b12c 100%) !important;
    border-bottom: 3px solid #b38f1e !important;
}
.tile-purple-admin {
    background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%) !important;
    border-bottom: 3px solid #6c3483 !important;
}
.tile-red-promos {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%) !important;
    border-bottom: 3px solid #962d22 !important;
}

/* 5. Tombol Install Aplikasi */
.btn-capi-install-wide {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    width: 100% !important;
    background: linear-gradient(135deg, #718093 0%, #2f3640 100%) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 12px !important;
    padding: 14px !important;
    border-radius: 14px !important;
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
    border-bottom: 3px solid #1e2229 !important; 
    letter-spacing: 0.8px;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2), inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

/* --- 4. Footer Credit (Kunci Aman di Bawah Layar) --- */
.footer-credit {
    position: absolute;
    bottom: 15px; /* Dikunci aman 15px dari bawah layar */
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.3);
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 600;
    z-index: 10;
}

/* ==========================================================================
   PROMISE ADMIN DASHBOARD STYLES (TERKUNCI KHUSUS MODUL ADMIN)
   ========================================================================== */

:root {
    --admin-purple: #9b59b6;
    --admin-purple-dark: #8e44ad;
    --admin-purple-gradient: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
    --bg-dark-panel: rgba(30, 34, 41, 0.45) !important;
    --border-glow: rgba(155, 89, 182, 0.3);
    --bg-sidebar-glass: rgba(20, 23, 28, 0.55) !important;
}

/* Modifikasi Pengunci Utama Kerangka Layar Grid Dashboard Multi-Role */
.dashboard-grid {
    display: grid !important;
    grid-template-columns: 260px 1fr !important;
    grid-template-rows: 100vh !important;
    width: 100vw !important;
    height: 100vh !important;
    background: #141619 !important;
    overflow: hidden !important;
}

.sidebar-panel {
    background: var(--bg-sidebar-glass) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    height: 100vh !important;
    overflow: hidden !important;
    border-right: 1px solid rgba(255,255,255,0.05) !important;
}

.main-panel-grid {
    display: grid !important;
    grid-template-rows: 65px 1fr !important;
    height: 100vh !important;
    overflow: hidden !important;
    background: #141619 !important;
}

.header-top {
    background: #1a1d24 !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 0 25px !important;
    border-bottom: 1px solid rgba(255,255,255,0.05) !important;
    height: 65px !important;
    box-sizing: border-box !important;
}

.iframe-workspace {
    width: 100% !important;
    height: 100% !important;
    background: #141619 !important;
    border: none !important;
    display: block !important;
    z-index: 10 !important;
}

/* Modifikasi Tombol Keluar Baru Kanan Atas Sebaris Header */
.btn-logout-top {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 8px 16px !important;
    background: rgba(239, 68, 68, 0.25) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    color: #fca5a5 !important;
    border: 1px solid rgba(239, 68, 68, 0.35) !important;
    border-radius: 6px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: all 0.2s ease-in-out !important;
    cursor: pointer !important;
}
.btn-logout-top i { color: #fca5a5 !important; }
.btn-logout-top:hover {
    background: rgba(239, 68, 68, 0.45) !important;
    color: #ffffff !important;
    border-color: rgba(239, 68, 68, 0.6) !important;
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.3) !important;
    transform: translateY(-1px) !important;
}

/* Login Box Admin Portal */
.login-box {
    background: var(--bg-dark-panel) !important;
    backdrop-filter: blur(16px) saturate(120%) !important;
    -webkit-backdrop-filter: blur(16px) saturate(120%) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    padding: 40px;
    border-radius: 20px;
    width: 100% !important;
    max-width: 400px !important; 
    box-sizing: border-box !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4) !important;
    text-align: center;
}
.login-box h3 {
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 25px;
    letter-spacing: 1px;
}
.form-group-capi {
    margin-bottom: 20px;
    text-align: left;
}
.form-group-capi label {
    color: #e2e8f0 !important;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.7px !important;
    margin-bottom: 8px;
    display: block;
    font-weight: 600 !important;
}
.form-control-capi {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    color: #ffffff;
    box-sizing: border-box;
    font-size: 14px;
    transition: all 0.3s ease;
}
.form-control-capi:focus {
    outline: none;
    border-color: var(--admin-purple);
    background: rgba(255,255,255,0.12);
    box-shadow: 0 0 10px var(--border-glow);
}
.btn-admin-submit {
    width: 100%;
    padding: 14px;
    background: var(--admin-purple-gradient);
    border: none;
    border-bottom: 3px solid #6c3483;
    border-radius: 12px;
    color: #ffffff;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
}
.btn-admin-submit:hover {
    filter: brightness(110%);
    transform: translateY(-1px);
}

/* Sidebar Navigation */
.admin-sidebar {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}
.sidebar-brand {
    padding: 25px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.sidebar-brand .logo-text {
    color: #ffffff;
    font-weight: 800;
    font-size: 18px;
    letter-spacing: 1px;
}
.sidebar-brand .badge-admin {
    background: var(--admin-purple);
    font-size: 10px;
    padding: 3px 8px;
    border-radius: 6px;
    font-weight: 600;
}
.sidebar-menu {
    list-style: none;
    padding: 15px 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
    overflow-y: auto; 
    flex-grow: 1;
}
.sidebar-item a {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 14px 20px;
    color: #a0a8b5;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.25s;
    border-left: 4px solid transparent;
}
.sidebar-item a i { font-size: 18px; }
.sidebar-item a:hover, .sidebar-item.active a {
    color: #ffffff;
    background: rgba(155, 89, 182, 0.1);
    border-left-color: var(--admin-purple);
}

.admin-header h1 span {
    color: #e0e6ed !important;
    font-weight: 500 !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5) !important;
}

.card-capi {
    background: var(--bg-dark-panel) !important;
    backdrop-filter: blur(14px) saturate(110%) !important;
    -webkit-backdrop-filter: blur(14px) saturate(110%) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25) !important;
}
.card-capi-title {
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.card-capi-title span {
    color: #cbd5e1 !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5) !important;
}
.btn-capi-sm {
    padding: 8px 14px;
    background: var(--admin-purple-gradient);
    border: none;
    border-bottom: 2px solid #6c3483;
    border-radius: 8px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
}
.btn-capi-sm:hover { filter: brightness(110%); }

.table-responsive-capi { overflow-x: auto; width: 100%; }
.table-capi { width: 100%; border-collapse: collapse; text-align: left; font-size: 13px; color: #e0e0e0; }
.table-capi th {
    background: rgba(255, 255, 255, 0.03);
    padding: 14px 16px;
    color: #ffffff;
    font-weight: 600;
    border-bottom: 2px solid rgba(255, 255, 255, 0.08);
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.5px;
}
.table-capi td { padding: 14px 16px; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.table-capi tr:hover td { background: rgba(255, 255, 255, 0.03) !important; }

.badge-status { padding: 4px 8px; border-radius: 6px; font-size: 11px; font-weight: 600; }
.badge-status.success { background: rgba(26, 188, 156, 0.2); color: #1abc9c; }
.badge-status.primary { background: rgba(0, 123, 220, 0.2); color: #007bdc; }

.badge-role {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 1px;
    margin-left: 10px;
    display: inline-block;
    vertical-align: middle;
}

@media (max-width: 768px) {
    .dashboard-grid { grid-template-columns: 70px 1fr !important; }
    .sidebar-panel { width: 70px !important; }
    .admin-sidebar .sidebar-brand .logo-text,
    .admin-sidebar .sidebar-brand .badge-admin,
    .admin-sidebar .sidebar-item span { display: none !important; }
}

/* ==========================================================================
   PROMISE SUPERVISOR DASHBOARD STYLES (TERKUNCI KHUSUS MODUL SPV)
   ========================================================================== */

:root {
    --spv-orange: #fbc531;
    --spv-orange-dark: #e1b12c;
    --spv-orange-gradient: linear-gradient(135deg, #fbc531 0%, #e1b12c 100%);
    --border-glow-orange: rgba(251, 197, 49, 0.3);
}

/* Form Control Focus khusus SPV (Glow Warna Oranye) */
.form-control-capi.spv-focus:focus {
    border-color: var(--spv-orange);
    box-shadow: 0 0 10px var(--border-glow-orange);
}

/* Button khusus SPV */
.btn-spv-submit {
    width: 100%;
    padding: 14px;
    background: var(--spv-orange-gradient);
    border: none;
    border-bottom: 3px solid #b38f1e;
    border-radius: 12px;
    color: #ffffff;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all(0.2s) ease;
}
.btn-spv-submit:hover {
    filter: brightness(110%);
    transform: translateY(-1px);
}

.btn-spv-sm {
    padding: 8px 14px;
    background: var(--spv-orange-gradient);
    border: none;
    border-bottom: 2px solid #b38f1e;
    border-radius: 8px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
}
.btn-spv-sm:hover { filter: brightness(110%); }


/* ==========================================================================
   PROMISE QUALITY CONTROL DASHBOARD STYLES (TERKUNCI KHUSUS MODUL QC)
   ========================================================================== */

:root {
    --qc-green: #1abc9c;
    --qc-green-dark: #16a085;
    --qc-green-gradient: linear-gradient(135deg, #1abc9c 0%, #16a085 100%);
    --border-glow-green: rgba(26, 188, 156, 0.3);
}

/* Form Control Focus khusus QC (Glow Warna Hijau Emerald) */
.form-control-capi.qc-focus:focus {
    border-color: var(--qc-green);
    box-shadow: 0 0 10px var(--border-glow-green);
}

/* Button khusus QC */
.btn-qc-submit {
    width: 100%;
    padding: 14px;
    background: var(--qc-green-gradient);
    border: none;
    border-bottom: 3px solid #117a65;
    border-radius: 12px;
    color: #ffffff;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
}
.btn-qc-submit:hover {
    filter: brightness(110%);
    transform: translateY(-1px);
}

.btn-qc-sm {
    padding: 8px 14px;
    background: var(--qc-green-gradient);
    border: none;
    border-bottom: 2px solid #117a65;
    border-radius: 8px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
}
.btn-qc-sm:hover { filter: brightness(110%); }


/* ==========================================================================
   PROMISE INTERVIEWER DASHBOARD STYLES (TERKUNCI KHUSUS MODUL INTV)
   ========================================================================== */

:root {
    --intv-blue: #007bdc;
    --intv-blue-dark: #00569d;
    --intv-blue-gradient: linear-gradient(135deg, #007bdc 0%, #00569d 100%);
    --border-glow-blue: rgba(0, 123, 220, 0.3);
}

/* Form Control Focus khusus Interviewer (Glow Warna Biru) */
.form-control-capi.intv-focus:focus {
    border-color: var(--intv-blue);
    box-shadow: 0 0 10px var(--border-glow-blue);
}

/* Button khusus Interviewer */
.btn-intv-submit {
    width: 100%;
    padding: 14px;
    background: var(--intv-blue-gradient);
    border: none;
    border-bottom: 3px solid #003e70;
    border-radius: 12px;
    color: #ffffff;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
}
.btn-intv-submit:hover {
    filter: brightness(110%);
    transform: translateY(-1px);
}

.btn-intv-sm {
    padding: 8px 14px;
    background: var(--intv-blue-gradient);
    border: none;
    border-bottom: 2px solid #003e70;
    border-radius: 8px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
}
.btn-intv-sm:hover { filter: brightness(110%); }


/* ==========================================================================
   PERBAIKAN VERTICAL ALIGN CENTER UNTUK HALAMAN LOGIN PORTAL
   ========================================================================== */

body.admin-body .flex-center-page,
body.spv-body .flex-center-page,
body.qc-body .flex-center-page,
body.intv-body .flex-center-page {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important; 
    align-items: center !important;     
    height: 100vh !important;           
    min-height: 100vh !important;
    padding: 15px !important;
    box-sizing: border-box !important;
}

body.admin-body .login-box,
body.spv-body .login-box,
body.qc-body .login-box,
body.intv-body .login-box {
    margin: 0 auto !important; 
}

/* ==========================================================================
   PERBAIKAN KONTRAS TEKS SUB-HEADER & DETAIL SEMUA DASHBOARD
   ========================================================================== */

body .form-group-capi label {
    color: #e2e8f0 !important; 
    font-weight: 600 !important;
    letter-spacing: 0.7px !important;
}

/* ==========================================================================
   BUTTON TESTER YELLOW GLASSY (INTV DASHBOARD)
   ========================================================================== */

body .btn-intv-tester {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(241, 196, 15, 0.25) !important; 
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #f1c40f !important;
    border: 1px solid rgba(241, 196, 15, 0.35) !important;
    border-bottom: 3px solid #b7950b !important;
    border-radius: 10px;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    transition: all 0.2s ease;
    cursor: pointer;
}

body .btn-intv-tester:hover {
    background: rgba(241, 196, 15, 0.4) !important;
    color: #ffffff !important;
    box-shadow: 0 0 15px rgba(241, 196, 15, 0.4);
    transform: translateY(-1px);
}

/* ==========================================================================
   INTERFACE CAPI MOBILE APP - INTERVIEWER PORTAL (PROMISE)
   ========================================================================== */

body.intv-mobile-body {
    /* 🎯 FIX EMAS: Ubah var(--bg-image-url) menjadi url murni agar dashboard.php tidak polos abu-abu */
    background-image: url('../img/bg.jpg') !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-attachment: fixed !important;
    min-height: 100vh !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 15px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

.mobile-container {
    width: 100% !important;
    max-width: 400px !important;
    border-radius: 20px !important;
    padding: 25px 20px !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4) !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    
    /* FIX SINKRONISASI: Menyamakan persis basis styling dengan class .login-box 🎯 */
    background: var(--bg-dark-panel) !important;
    backdrop-filter: blur(16px) saturate(120%) !important;
    -webkit-backdrop-filter: blur(16px) saturate(120%) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.mobile-header {
    text-align: center;
    margin-bottom: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 15px;
}

.mobile-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 2px;
    color: #38bdf8;
}

.mobile-header p {
    margin: 4px 0 0 0;
    font-size: 12px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Menu Utama Tombol Besar-Besar */
.mobile-menu-box {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 25px;
}

/* Section Riwayat Input Format Mini */
.mini-log-section {
    background: rgba(255, 255, 255, 0.02) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-radius: 16px !important;
    padding: 15px !important;
    box-sizing: border-box !important;
    margin-bottom: 30px !important; 
}

.mini-log-scroll-container {
    height: 180px !important;         
    overflow-y: auto !important;       
    padding-right: 4px !important;     
}

.mini-log-scroll-container::-webkit-scrollbar {
    width: 4px !important;
}
.mini-log-scroll-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.01) !important;
}
.mini-log-scroll-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1) !important;
    border-radius: 10px !important;
}
.mini-log-scroll-container::-webkit-scrollbar-thumb:hover {
    background: rgba(56, 189, 248, 0.4) !important; 
}

.mini-log-title {
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #94a3b8 !important;
    margin-bottom: 12px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}

.mini-card-item {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-radius: 10px !important;
    padding: 10px 12px !important;
    margin-bottom: 8px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}

.mini-card-item:last-child {
    margin-bottom: 0 !important;
}

.mini-card-info h4 {
    margin: 0 !important;
    font-size: 13px !important;
    color: #f1f5f9 !important;
}

.mini-card-info p {
    margin: 2px 0 0 0 !important;
    font-size: 11px !important;
    color: #cbd5e1 !important; 
}

.mini-badge {
    font-size: 10px !important;
    padding: 4px 8px !important;
    border-radius: 6px !important;
    font-weight: 700 !important;
}
.mini-badge.success { background: rgba(34, 197, 94, 0.15) !important; color: #4ade80 !important; border: 1px solid rgba(34, 197, 94, 0.2) !important; }
.mini-badge.warning { background: rgba(234, 179, 8, 0.15) !important; color: #facc15 !important; border: 1px solid rgba(234, 179, 8, 0.2) !important; }

/* NAVIGASI FLAT BAWAH */
.mobile-footer-nav {
    display: grid !important;
    grid-template-columns: 1fr 1.2fr !important; 
    gap: 12px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.btn-nav-flat {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 14px 10px !important; 
    border-radius: 14px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    box-sizing: border-box !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important; 
    user-select: none !important;
}

/* TOMBOL KELUAR MOBILE APP */
.btn-nav-logout {
    background: rgba(239, 68, 68, 0.15) !important;
    border: 1px solid rgba(239, 68, 68, 0.25) !important;
    border-bottom: 3px solid #dc2626 !important;
    color: #f87171 !important;
}
.btn-nav-logout:hover {
    background: rgba(239, 68, 68, 0.25) !important;
    color: #ffffff !important;
}
.btn-nav-logout:active { transform: translateY(2px) !important; border-bottom-width: 1px !important; }

/* TOMBOL SYNC ALL MOBILE APP */
.btn-nav-sync-bottom {
    background: rgba(34, 197, 94, 0.15) !important;
    border: 1px solid rgba(34, 197, 94, 0.25) !important;
    border-bottom: 3px solid #16a34a !important;
    color: #4ade80 !important;
}
.btn-nav-sync-bottom:hover {
    background: rgba(34, 197, 94, 0.25) !important;
    color: #ffffff !important;
}
.btn-nav-sync-bottom:active { transform: translateY(2px) !important; border-bottom-width: 1px !important; }

/* MENU UTAMA ATAS APP MOBILE */
.mobile-menu-row {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important; 
    gap: 12px !important;                      
}

.btn-mobile-action {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important; 
    flex-direction: column !important;  
    gap: 8px !important;                
    width: 100% !important;
    padding: 14px 10px !important;      
    border-radius: 8px !important;
    font-size: 13px !important;         
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    box-sizing: border-box !important;
    text-decoration: none !important;
    text-align: center !important;
}

/* ==========================================================================
   PERBAIKAN TOTAL TRANSPARANSI PANEL KIRI (SIDEBAR GLASSMORPHISM)
   ========================================================================== */

.admin-sidebar-kustom {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.03) !important; 
    backdrop-filter: blur(15px) saturate(140%) !important;
    -webkit-backdrop-filter: blur(15px) saturate(140%) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.05) !important;
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.3) !important;
}

.admin-sidebar-kustom .sidebar-brand {
    padding: 20px; 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    border-bottom: 1px solid rgba(255,255,255,0.08) !important; 
    height: 65px; 
    box-sizing: border-box;
    background: rgba(0, 0, 0, 0.2) !important;
}

.admin-sidebar-kustom .sidebar-label {
    padding: 20px 12px 8px !important; 
    font-size: 11px !important; 
    color: #ffffff !important; 
    font-weight: 700 !important; 
    text-transform: uppercase; 
    letter-spacing: 1px !important; 
    opacity: 0.95 !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.menu-link-kustom {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    color: #ffffff !important; 
    padding: 12px !important;
    text-decoration: none !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    transition: all 0.25s ease !important;
    border-left: 4px solid transparent !important;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.menu-link-kustom:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.12) !important; 
    border-left-color: var(--admin-purple, #9b59b6) !important;
    padding-left: 16px !important;
}

/* ==========================================================================
   EFEK HAMBURGER MENU & SIDEBAR COCIUT (COLLAPSIBLE SIDEBAR)
   ========================================================================== */

.btn-hamburger-capi {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
    font-size: 22px !important;
    padding: 4px 10px !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.btn-hamburger-capi:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
}

.sidebar-collapsed {
    grid-template-columns: 70px 1fr !important;
}

.sidebar-collapsed .sidebar-panel .logo-text {
    display: none !important;
}

.sidebar-collapsed .sidebar-panel .sidebar-label {
    display: none !important;
}

.sidebar-collapsed .sidebar-panel .menu-link-kustom span {
    display: none !important;
}

.sidebar-collapsed .sidebar-panel .menu-link-kustom {
    justify-content: center !important;
    padding: 12px 0 !important;
    border-left: none !important;
}

.sidebar-collapsed .sidebar-panel .menu-link-kustom i {
    font-size: 18px !important;
    margin: 0 !important;
}

.sidebar-collapsed .sidebar-panel .sidebar-brand {
    justify-content: center !important;
    padding: 20px 0 !important;
}

/* ==========================================================================
   PROMISE PORTAL - TABBED DASHBOARD SYSTEM GLOBAL STYLE
   ========================================================================== */

.workspace-container {
    flex: 1;
    padding: 5px;
    overflow-y: auto;
    background-image: var(--bg-image-url) !important; 
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-attachment: fixed !important;
}

.nav-tabs-capi {
    border-bottom: 2px solid rgba(255, 255, 255, 0.05) !important;
    gap: 5px;
    margin-bottom: 0px;
}

.nav-tabs-capi .nav-link {
    color: #a0a8b5 !important;
    background: rgba(0, 0, 0, 0.4) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-bottom: none !important;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 12px 20px;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    transition: all 0.2s ease;
}

.nav-tabs-capi .nav-link:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.08) !important;
}

.nav-tabs-capi .nav-link.active {
    color: #ffffff !important;
    background: var(--admin-purple, #9b59b6) !important; 
    border-color: var(--admin-purple, #9b59b6) !important;
    box-shadow: 0 -4px 12px rgba(155, 89, 182, 0.2);
}

.table-toolbar {
    background: rgba(26, 29, 36, 0.75) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 14px 20px;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.table-title {
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
}

.tabulator-capi-container {
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    overflow: hidden;
    margin-bottom: 5px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(20, 23, 28, 0.4) !important;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.btn-table-action {
    padding: 3px 8px !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    border-radius: 4px !important;
    gap: 4px;
    display: inline-flex;
    align-items: center;
}

.tabulator .tabulator-cell[id*="-id"], 
.tabulator .tabulator-cell{
    text-align: center !important;
}

.tabulator .tabulator-cell {
    display: inline-flex !important;
    align-items: center !important;
}

.tabulator .tabulator-header .tabulator-col[tabulator-field="id"] .tabulator-col-content,
.tabulator .tabulator-header .tabulator-col[tabulator-field="aksi"] .tabulator-col-content {
    text-align: center !important;
    justify-content: center !important;
    display: flex !important;
}

.tabulator .tabulator-header .tabulator-col:not([tabulator-field="id"]):not([tabulator-field="aksi"]) .tabulator-col-content {
    text-align: left !important;
    justify-content: flex-start !important;
    display: flex !important;
    padding-left: 10px !important;
}

.tabulator .tabulator-table .tabulator-cell[tabulator-field="id"],
.tabulator .tabulator-table .tabulator-cell[tabulator-field="aksi"] {
    text-align: center !important;
    justify-content: center !important;
    display: inline-flex !important;
    align-items: center !important;
}

.tabulator .tabulator-table .tabulator-cell:not([tabulator-field="id"]):not([tabulator-field="aksi"]) {
    text-align: left !important;
    justify-content: flex-start !important;
    display: inline-flex !important;
    align-items: center !important;
    padding-left: 15px !important;
}

.tabulator .tabulator-header .tabulator-col .tabulator-col-content {
    flex-direction: column !important;
    align-items: stretch !important;
    height: auto !important;
    padding: 6px 8px !important;
}

.tabulator .tabulator-header .tabulator-col .tabulator-col-content .tabulator-header-filter {
    display: block !important;
    width: 100% !important;
    margin-top: 6px !important;
    box-sizing: border-box;
}

.tabulator-header-filter input, 
.tabulator-header-filter select {
    background: #141619 !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    font-size: 11px !important;
    padding: 2px 6px !important;
    height: 26px !important;
    border-radius: 4px !important;
    width: 100% !important;
    box-sizing: border-box;
    outline: none;
}
.tabulator-header-filter input::placeholder {
    color: #718093 !important;
}

.tabulator .tabulator-header .tabulator-col[tabulator-field="aksi"] {
    border-right: none !important;
}

.tabulator-row .tabulator-cell[tabulator-field="aksi"] {
    border-right: none !important;
}

.tabulator .tabulator-header .tabulator-col-placeholder {
    border-left: none !important;
    background: transparent !important;
}

div[id^="table-data-"] .tabulator-cell {
    white-space: normal !important;
    word-break: break-word !important;
    overflow: visible !important;
}

/* ==========================================================================
   SOLUSI RADIKAL: TUTUP TOTAL LATAR BELAKANG SAAT SWEETALERT MUNCUL
   ========================================================================== */

.swal2-container.swal2-backdrop-show {
    background: #141619 !important; 
    backdrop-filter: none !important; 
    -webkit-backdrop-filter: none !important;
}

body.swal2-shown {
    overflow: hidden !important;
    padding-right: 0 !important;
}


/* ==========================================================================
   KONDISI RESPONSIF: SEMBUNYIKAN MENU AKSES PUSAT PADA GAWAI MOBILE
   ========================================================================== */
@media (max-width: 768px) {
    body .desktop-only {
        display: none !important; /* Memaksa menu Admin dan Promos hilang total di HP */
    }
    
    body .promise-menu-container {
        margin-top: 140px !important; /* Menyesuaikan kembali posisi dorongan tombol di HP agar tetap presisi center */
    }
}

/* 1. Ubah Opsi Pilihan Menjadi "Glassmorphic Interactive Cards" */
/* ==========================================================================
   PREMIUM GLASSMORPHIC FORM COMPONENTS FOR CAPI ENGINE
   ========================================================================== */

/* Efek Hover dan Sentuhan pada Kartu Pilihan (Radio/Checkbox Layout) */
body label[style*="display: block"] {
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative;
    overflow: hidden;
}

body label[style*="display: block"]:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(56, 189, 248, 0.4) !important; /* Glow Biru Cyan saat hover */
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Efek Otomatis jika Di dalam Kartu Tersebut Inputnya Sedang Tercentang (Checked State) */
body label[style*="display: block"]:has(input:checked) {
    background: rgba(56, 189, 248, 0.12) !important; /* Warna glassy biru muda */
    border-color: #38bdf8 !important; /* Border tegas biru cyan */
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.2), inset 0 1px 1px rgba(255,255,255,0.1) !important;
}

/* Memperbesar Ukuran Titik Radio & Checkbox Agar Mudah Ditekan di HP Jempol */
body label input[type="radio"], 
body label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    vertical-align: middle;
    transition: transform 0.2s ease;
}

body label:active input[type="radio"],
body label:active input[type="checkbox"] {
    transform: scale(1.2); /* Efek membal saat ditekan */
}

/* 2. Berikan Efek "Neon Glow Focus" pada Input Teks & Angka */
/* Modifikasi Mutakhir Kolom Ketik Text & Number CAPI */
.form-control-capi {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    font-size: 15px !important;
    letter-spacing: 0.5px;
}

.form-control-capi:focus {
    background: rgba(255, 255, 255, 0.09) !important;
    border-color: #38bdf8 !important;
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.3) !important;
    color: #ffffff !important;
}

.form-control-capi::placeholder {
    color: rgba(255, 255, 255, 0.25) !important;
    font-style: italic;
}

/* 3. Tambahkan Efek "Fade-In" Halus Saat Pindah Pertanyaan */
/* Animasi Transisi Halus Kemunculan Soal */
@keyframes capiFadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#capi-screen > div {
    animation: capiFadeIn 0.35s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.swal2-container.swal2-backdrop-show, 
.swal2-container {
    /* Paksa tirai hitam SweetAlert menjadi transparan total untuk semua jenis eror! */
    background: rgba(0, 0, 0, 0) !important; 
    background-color: rgba(0, 0, 0, 0) !important;
}

/* 🎯 ATURAN EMAS: Kunci otomatis pembuka scroll saat mode wawancara aktif */
body.mode-wawancara-scroll {
    display: block !important;
    overflow-y: auto !important;
    height: auto !important;
    min-height: 100vh !important;
    padding-top: 30px !important;
    padding-bottom: 50px !important;
}


body.intv-mobile-body {
    background-image: url('../../assets/img/bg.jpg') !important;
    display: flex !important; 
    flex-direction: column !important; 
    align-items: center !important; 
    justify-content: center !important; 
    min-height: 100vh !important;
}

body.mode-wawancara-scroll {
    display: block !important;
    overflow-y: auto !important;
    height: auto !important;
    min-height: 100vh !important;
    padding-top: 30px !important;
    padding-bottom: 50px !important;
}

body.mode-wawancara-scroll .mobile-container {
    position: relative !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    margin: 0 auto !important;
}

body.mode-wawancara-scroll #capi-screen {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
}