/* 
 Gati Yekti Admin Portal - Modern Apple Style Override
 Redesign only. No JavaScript / Supabase changes.
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    --apple-bg: #f5f5f7;
    --apple-card: rgba(255,255,255,.86);
    --apple-border: rgba(0,0,0,.08);
    --apple-text: #1d1d1f;
    --apple-muted: #6e6e73;
    --apple-blue: #0071e3;
    --apple-green: #34c759;
    --apple-radius: 22px;
}

html, body {

    font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Helvetica,
    Arial,
    sans-serif !important;

}

button,
input,
select,
textarea {
    font-family:
    -apple-system,
    BlinkMacSystemFont,
    "SF Pro Display",
    "SF Pro Text",
    Inter,
    Helvetica,
    Arial,
    sans-serif;
}
.fa,
.fas,
.far,
.fab,
.fa-solid,
.fa-regular,
.fa-brands {
    font-family: "Font Awesome 6 Free" !important;
}

.fas,
.fa-solid {
    font-weight: 900;
}

.far,
.fa-regular {
    font-weight: 400;
}

.fab,
.fa-brands {
    font-family: "Font Awesome 6 Brands" !important;
}

body {
    background:
    radial-gradient(circle at top left, rgba(0,113,227,.08), transparent 30%),
    var(--apple-bg) !important;
    color: var(--apple-text);
}

/* LOGIN */

.login-container {
    background: rgba(255,255,255,.88) !important;
    backdrop-filter: blur(25px);
    border: 1px solid rgba(255,255,255,.8);
    border-radius: 28px !important;
    box-shadow: 0 30px 80px rgba(0,0,0,.12) !important;
    padding: 45px !important;
}

.login-logo {
    width: 75px !important;
}

.btn-login {
    background: linear-gradient(135deg,#0071e3,#005bb5) !important;
    border-radius: 14px !important;
    padding: 14px !important;
    box-shadow: 0 10px 25px rgba(0,113,227,.25);
}

/* SIDEBAR */

.sidebar {
    background:
    linear-gradient(180deg,#111827,#020617) !important;
    border-right: 1px solid rgba(255,255,255,.08);
    padding: 28px 18px !important;
}

.sidebar-logo {
    border-bottom: 1px solid rgba(255,255,255,.12) !important;
    font-size: 1.4rem !important;
}

.sidebar-menu a {
    border-radius: 14px !important;
    margin-bottom: 5px;
    color:#cbd5e1 !important;
    transition:.25s ease;
}

.sidebar-menu a:hover {
    background:rgba(255,255,255,.08) !important;
    transform:translateX(3px);
}

.sidebar-menu a.active {
    background:linear-gradient(135deg,#0071e3,#0a84ff) !important;
    box-shadow:0 8px 25px rgba(0,113,227,.35) !important;
}

/* HEADER */

.header {
    background:rgba(255,255,255,.75) !important;
    backdrop-filter:blur(20px);
    border:1px solid rgba(0,0,0,.05);
    border-radius:22px !important;
    box-shadow:0 15px 40px rgba(0,0,0,.05) !important;
}

.header-left h2 {
    color:#111827;
    font-weight:700 !important;
}

/* CARDS */

.card {
    background:var(--apple-card) !important;
    backdrop-filter:blur(20px);
    border:1px solid var(--apple-border);
    border-radius:var(--apple-radius) !important;
    box-shadow:
    0 10px 35px rgba(0,0,0,.05) !important;
    padding:32px !important;
}

.card h3 {
    color:#111827 !important;
    border-bottom:1px solid #e5e7eb !important;
    font-weight:700 !important;
}

/* INPUT */

.input-group input,
.input-group select,
.input-group textarea {
    background:#fbfbfd !important;
    border:1px solid #d2d2d7 !important;
    border-radius:14px !important;
    padding:14px 16px !important;
    transition:.25s;
}

.input-group input:focus,
.input-group select:focus {
    border-color:#0071e3 !important;
    box-shadow:0 0 0 4px rgba(0,113,227,.12) !important;
}

/* TABLE */

.finance-table-wrapper {
    border-radius:18px !important;
    border:1px solid #e5e7eb !important;
}

.finance-table th {
    background:#f5f5f7 !important;
    color:#1d1d1f !important;
    border:none !important;
    font-weight:700 !important;
}

.finance-table td {
    border-color:#f0f0f2 !important;
}

.finance-table tbody tr:hover {
    background:#fafafa;
}

/* BUTTONS */

.action-btn,
.btn-logout {
    border-radius:12px !important;
    transition:.25s;
}

.action-btn:hover,
.btn-logout:hover {
    transform:translateY(-2px);
}

/* SUMMARY KEUANGAN */

.card-keuangan {
    background:white;
    border-radius:20px !important;
    box-shadow:0 10px 30px rgba(0,0,0,.06);
}

.angka-keu {
    font-weight:800 !important;
}

/* MODAL */

[id^="modal"] > div {
    border-radius:24px !important;
    box-shadow:0 30px 80px rgba(0,0,0,.2);
}

/* MOBILE */

@media(max-width:768px){
    .card {
        padding:22px !important;
        border-radius:18px !important;
    }

    .header {
        border-radius:18px !important;
    }

    .sidebar {
        width:290px !important;
    }
}

/* PRINT tetap aman */
@media print {
    * {
        font-family:"Times New Roman",serif !important;
    }
}

/* =====================================================
   SIDEBAR MODERN V2 - APPLE ENTERPRISE STYLE
   ===================================================== */

.sidebar {
    padding: 24px 14px !important;
    background:
    linear-gradient(
        180deg,
        #111827 0%,
        #020617 100%
    ) !important;
}


/* Logo Area */
.sidebar-logo {
    padding: 10px 12px 25px !important;
    margin-bottom: 25px !important;
    border-bottom: 1px solid rgba(255,255,255,0.08) !important;
}

.sidebar-logo img {
    width: 42px !important;
    height: 42px !important;
    object-fit: contain;
}


/* Label kategori menu */

.menu-label {
    padding-left: 12px !important;
    margin-top: 22px !important;
    margin-bottom: 10px !important;
    color: rgba(255,255,255,.45) !important;
    font-size: 11px !important;
    letter-spacing: 1.2px !important;
    font-weight: 700 !important;
}


/* Menu utama */

.sidebar-menu a {

    position: relative;

    padding:
    12px 14px !important;

    border-radius:
    14px !important;

    color:
    #cbd5e1 !important;

    font-size:
    14px !important;

    font-weight:
    500 !important;

    transition:
    all .25s ease !important;
}


/* Icon */

.sidebar-menu a i {

    width:
    24px;

    text-align:
    center;

    font-size:
    15px;

    opacity:
    .85;
}


/* Hover */

.sidebar-menu a:hover {

    background:
    rgba(255,255,255,.07) !important;

    color:
    white !important;

    transform:
    translateX(4px);

}


/* Menu aktif */

.sidebar-menu a.active {

    background:
    linear-gradient(
        135deg,
        #0071e3,
        #0a84ff
    ) !important;


    color:
    white !important;


    box-shadow:
    0 8px 25px rgba(0,113,227,.35) !important;

}


/* Garis indikator kiri */

.sidebar-menu a.active::before {

    content:"";

    position:absolute;

    left:-14px;

    top:50%;

    transform:
    translateY(-50%);

    width:4px;

    height:28px;

    border-radius:5px;

    background:#60a5fa;

}


/* Submenu */

#submenu-jk a {

    font-size:
    13px !important;

    padding-left:
    45px !important;

    color:
    #94a3b8 !important;

}


#submenu-jk a:hover {

    background:
    rgba(255,255,255,.05) !important;

    color:white !important;

}


/* Scrollbar sidebar */

.sidebar::-webkit-scrollbar {

    width:
    5px;

}


.sidebar::-webkit-scrollbar-thumb {

    background:
    rgba(255,255,255,.15);

    border-radius:
    10px;

}

/* =====================================================
   HEADER MODERN V2 - APPLE STYLE
   ===================================================== */


.header {

    padding: 26px 32px !important;

    border-radius:
    26px !important;

    background:
    rgba(255,255,255,.75) !important;

    backdrop-filter:
    blur(25px);

}


/* Judul */

.header-left h2 {

    font-size:
    1.8rem !important;

    font-weight:
    750 !important;

    letter-spacing:
    -0.5px;

    color:
    #111827 !important;

}


/* teks akses */

.header-left p {

    margin-top:
    6px !important;

    color:
    #6b7280 !important;

    font-size:
    .9rem !important;

}


/* Nama user */

#namaLoginUser {

    color:
    #0071e3 !important;

    font-weight:
    700 !important;

}


/* Tombol kanan */

.header-right {

    gap:
    12px !important;

}


.header-right .btn-logout {

    border-radius:
    14px !important;

    padding:
    11px 18px !important;

    font-size:
    .85rem !important;

    box-shadow:
    0 6px 18px rgba(0,0,0,.08);

}


/* Tombol keluar */

#btnLogout {

    background:
    #ff3b30 !important;

}


/* Tombol ganti password */

.header-right button:first-child {

    background:
    #ff9500 !important;

}


/* Mobile */

@media(max-width:768px){

    .header {

        padding:
        18px !important;

        border-radius:
        22px !important;

    }


    .header-left h2 {

        font-size:
        1.35rem !important;

    }


    .header-right {

        gap:
        10px !important;

    }


    .header-right .btn-logout {

        padding:
        12px 10px !important;

        font-size:
        .8rem !important;

    }

}

/* GLOBAL FONT RESET */

body,
button,
input,
select,
textarea,
label,
p,
span,
h1,
h2,
h3,
h4,
h5,
h6 {

    font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Helvetica,
    Arial,
    sans-serif !important;

}


/* Font Awesome jangan ikut diganti */

.fa,
.fas,
.far,
.fab,
.fa-solid,
.fa-regular,
.fa-brands {

    font-family:
    "Font Awesome 6 Free" !important;

}

/* =====================================
   GLOBAL FONT SYSTEM - INTER
===================================== */

html,
body,
button,
input,
select,
textarea,
label,
p,
span,
div,
a,
h1,
h2,
h3,
h4,
h5,
h6 {

    font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Arial,
    sans-serif !important;

}


/* Quill editor */
.ql-editor,
.ql-toolbar,
.ql-container {

    font-family:
    "Inter",
    sans-serif !important;

}


/* Font Awesome tetap */
.fa,
.fas,
.far,
.fab,
.fa-solid,
.fa-regular,
.fa-brands {

    font-family:
    "Font Awesome 6 Free" !important;

}

/* =====================================
   FINAL TYPOGRAPHY LOCK
===================================== */

body,
body *:not(.fa):not(.fas):not(.far):not(.fab) {

    font-family:
    "Inter",
    sans-serif !important;

}


/* Quill jangan ikut */
.ql-editor *,
.ql-toolbar *,
.ql-container * {

    font-family:
    Inter,
    sans-serif !important;

}
/* =====================================================
   CARD & FORM SYSTEM - APPLE CORPORATE STYLE
===================================================== */


/* CARD UTAMA */

.card {

    background:
    rgba(255,255,255,.92) !important;

    border:
    1px solid #e5e5ea !important;

    border-radius:
    24px !important;

    padding:
    36px !important;

    box-shadow:
    0 12px 40px rgba(0,0,0,.05) !important;

}


/* Hover card halus */

.card:hover {

    box-shadow:
    0 18px 50px rgba(0,0,0,.07) !important;

}


/* Judul card */

.card h3 {

    font-size:
    1.25rem !important;

    font-weight:
    700 !important;

    letter-spacing:
    -0.3px;

    color:
    #1d1d1f !important;

    border-bottom:
    1px solid #e5e5ea !important;

    padding-bottom:
    16px !important;

}


/* Deskripsi bawah judul */

.card p {

    color:
    #6e6e73;

    line-height:
    1.6;

}


/* LABEL FORM */

.input-group label {

    font-size:
    .82rem !important;

    font-weight:
    600 !important;

    color:
    #515154 !important;

    margin-bottom:
    8px !important;

}


/* INPUT */

.input-group input,
.input-group select,
.input-group textarea {


    background:
    #fbfbfd !important;


    border:
    1px solid #d2d2d7 !important;


    border-radius:
    14px !important;


    min-height:
    46px;


    font-size:
    .95rem !important;


    color:
    #1d1d1f !important;


    transition:
    all .2s ease;


}


/* Fokus input */

.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus {


    background:
    white !important;


    border-color:
    #0071e3 !important;


    box-shadow:
    0 0 0 4px rgba(0,113,227,.12) !important;


}


/* Button utama */

.btn-login {


    border-radius:
    14px !important;


    font-weight:
    600 !important;


    letter-spacing:
    -.2px;


    min-height:
    44px;


}


/* Button hover */

.btn-login:hover {


    transform:
    translateY(-1px);


}


/* Grid form */

.grid-2 {

    gap:
    26px !important;

}

/* ============================================
   APPLE TYPOGRAPHY SCALE
============================================ */


body {

    font-size:15px !important;

}


/* Paragraph */

.card p,
.card span {

    font-size:
    14px;

    line-height:
    1.6;

}


/* Heading */

.card h3 {

    font-size:
    20px !important;

}


.card h4 {

    font-size:
    16px !important;

}


/* Label */

.input-group label {

    font-size:
    13px !important;

}


/* Table */

.finance-table {

    font-size:
    14px !important;

}


/* Small text */

small {

    font-size:
    13px !important;

}


/* ============================================
   CUSTOM RADIO STYLE
============================================ */


input[type="radio"] {

    appearance:none;

    width:18px !important;

    height:18px !important;

    min-height:18px !important;

    border:
    2px solid #c7c7cc;

    border-radius:
    50%;

    display:inline-block;

    vertical-align:middle;

    margin-right:8px;

}


input[type="radio"]:checked {

    border-color:#0071e3;

    box-shadow:
    inset 0 0 0 4px white;

    background:#0071e3;

}


/* ============================================
   TOOLBAR BUTTON AKUNTANSI
============================================ */


#tab-akuntansi .action-btn {

    background:white !important;

    color:#1d1d1f !important;

    border:
    1px solid #d2d2d7 !important;

    box-shadow:none !important;

    padding:
    10px 16px !important;

}


#tab-akuntansi .action-btn:hover {

    background:#f5f5f7 !important;

    transform:
    translateY(-1px);

}


/* Primary action */

#tab-akuntansi .btn-success {

    color:#0071e3 !important;

}


#tab-akuntansi .action-btn[style*="ef4444"] {

    color:#ff3b30 !important;

}
