:root {
    --primary: #0d6efd;
    --dark: #172033;
    --sidebar: #111827;
    --light-bg: #f5f7fb;

    --sidebar-width: 260px;
    --navbar-height: 70px;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

body {
    font-family: "Segoe UI", Arial, sans-serif;
    background: var(--light-bg);
}


/* =========================================================
   LOGIN
========================================================= */

.login-page {
    min-height: 100vh;

    background:
        radial-gradient(
            circle at top right,
            rgba(13, 110, 253, 0.15),
            transparent 35%
        ),
        linear-gradient(
            135deg,
            #f8f9fa,
            #eef3f9
        );
}

.login-card {
    border-radius: 20px;
    overflow: hidden;
}

.login-icon {
    width: 70px;
    height: 70px;

    margin: auto;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 18px;

    background: linear-gradient(
        135deg,
        #0d6efd,
        #084298
    );

    color: white;

    font-size: 32px;

    box-shadow:
        0 10px 25px rgba(13, 110, 253, 0.25);
}

.login-card .form-control,
.login-card .input-group-text {
    min-height: 46px;
}

.login-card .form-control:focus {
    box-shadow:
        0 0 0 0.2rem rgba(13, 110, 253, 0.12);
}


/* =========================================================
   GENERAL
========================================================= */

.card {
    border-radius: 16px;
}

.btn {
    border-radius: 9px;
}

.form-control,
.form-select {
    border-radius: 9px;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
}


/* =========================================================
   SIDEBAR
========================================================= */

.sidebar {
    position: fixed;

    top: 0;
    left: 0;

    width: var(--sidebar-width);
    height: 100vh;

    background: var(--sidebar);
    color: #fff;

    z-index: 1040;

    overflow-x: hidden;
    overflow-y: auto;

    transition:
        left 0.3s ease,
        transform 0.3s ease;
}


/* =========================================================
   SIDEBAR BRAND
========================================================= */

.sidebar-brand {
    height: var(--navbar-height);

    display: flex;
    align-items: center;

    padding: 0 20px;

    border-bottom:
        1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-brand-icon {
    width: 40px;
    height: 40px;

    flex-shrink: 0;

    border-radius: 10px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #0d6efd;

    margin-right: 12px;

    font-size: 20px;
}

.sidebar-brand-text {
    line-height: 1.15;
}

.sidebar-brand-text strong {
    display: block;

    font-size: 14px;
}

.sidebar-brand-text small {
    display: block;

    color: #9ca3af;

    font-size: 11px;
}


/* =========================================================
   SIDEBAR MENU
========================================================= */

.sidebar-menu {
    padding: 20px 12px;
}

.menu-label {
    font-size: 10px;

    color: #6b7280;

    text-transform: uppercase;

    letter-spacing: 1px;

    padding: 10px 12px 8px;
}

.sidebar-menu a {
    display: flex;
    align-items: center;

    gap: 12px;

    width: 100%;

    padding: 11px 13px;

    margin-bottom: 4px;

    color: #cbd5e1;

    text-decoration: none;

    border-radius: 9px;

    font-size: 14px;

    transition: 0.2s;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    background: #1d4ed8;

    color: #fff;
}

.sidebar-menu a i {
    font-size: 17px;

    width: 20px;

    flex-shrink: 0;

    text-align: center;
}


/* =========================================================
   MAIN CONTENT
========================================================= */

.main-content {
    position: relative;

    margin-left: var(--sidebar-width);

    width: calc(100% - var(--sidebar-width));

    min-height: 100vh;

    background: var(--light-bg);

    padding-top: 0;

    overflow-x: hidden;
}


/* =========================================================
   TOP NAVBAR
========================================================= */

.top-navbar {
    height: var(--navbar-height);

    width: 100%;

    background: #fff;

    border-bottom:
        1px solid #e5e7eb;

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 0 25px;

    position: sticky;

    top: 0;

    z-index: 1030;
}


/* =========================================================
   PAGE CONTENT
========================================================= */

.page-content {
    padding: 25px;

    width: 100%;
}


/* Jika halaman menggunakan container-fluid
   langsung setelah navbar */

.main-content > .container-fluid {
    width: 100%;

    max-width: 100%;
}


/* =========================================================
   USER PROFILE
========================================================= */

.user-profile {
    display: flex;

    align-items: center;

    gap: 10px;
}

.user-avatar {
    width: 40px;
    height: 40px;

    border-radius: 50%;

    background: #e8f0ff;

    color: #0d6efd;

    display: flex;

    align-items: center;
    justify-content: center;

    font-weight: 700;
}

.user-info {
    line-height: 1.2;
}

.user-info strong {
    display: block;

    font-size: 13px;
}

.user-info small {
    color: #6b7280;

    font-size: 11px;

    text-transform: capitalize;
}


/* =========================================================
   SIDEBAR TOGGLE
========================================================= */

.sidebar-toggle {
    display: none;

    border: 0;

    background: transparent;

    font-size: 22px;
}


/* =========================================================
   BUTTON BUAT PERMINTAAN
========================================================= */

.btn-buat-permintaan {
    display: inline-flex !important;

    align-items: center !important;

    gap: 8px !important;

    background: #0d6efd !important;

    color: #ffffff !important;

    padding: 10px 18px !important;

    border-radius: 8px !important;

    text-decoration: none !important;

    font-weight: 600 !important;

    border: none !important;

    box-shadow:
        0 3px 8px rgba(13, 110, 253, 0.30) !important;

    transition: 0.2s ease !important;
}

.btn-buat-permintaan i {
    color: #ffffff !important;

    font-size: 16px !important;
}

.btn-buat-permintaan:hover {
    background: #0b5ed7 !important;

    color: #ffffff !important;

    transform: translateY(-1px);

    box-shadow:
        0 5px 12px rgba(13, 110, 253, 0.40) !important;
}


/* =========================================================
   TABLE
========================================================= */

.table {
    font-size: 13px;
}

.table th {
    white-space: nowrap;
}

.table td {
    vertical-align: middle;
}


/* =========================================================
   TABLET / MOBILE
========================================================= */

@media (max-width: 991.98px) {

    .sidebar {
        left: -260px;
    }

    .sidebar.show {
        left: 0;
    }

    .main-content {
        margin-left: 0;

        width: 100%;
    }

    .sidebar-toggle {
        display: block;
    }

    .page-content {
        padding: 18px;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 575.98px) {

    :root {
        --navbar-height: 60px;
    }

    .sidebar {
        width: 260px;
    }

    .sidebar-brand {
        height: var(--navbar-height);
    }

    .top-navbar {
        height: var(--navbar-height);

        padding: 0 15px;
    }

    .main-content {
        width: 100%;

        margin-left: 0;
    }

    .page-content {
        padding: 15px;
    }

    .container-fluid {
        padding-left: 12px !important;

        padding-right: 12px !important;
    }

    .card {
        border-radius: 12px;
    }
}

/* =========================================================
   FOOTER
========================================================= */

.app-footer {
    margin-top: auto;
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
}

.app-footer small {
    font-size: 12px;
}

.app-footer strong {
    color: #0d6efd;
    font-weight: 600;
}

/* =========================
   LOGIN LOGO
   ========================= */

.login-brand {
    width: 100%;
    height: 190px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    overflow: hidden;
}

.login-logo {
    width: 170px !important;
    height: 170px !important;
    max-width: 170px !important;
    max-height: 170px !important;
    min-width: 0 !important;
    min-height: 0 !important;
    object-fit: contain;
    object-position: center;
    display: block;
}

@media (max-width: 576px) {

    .login-brand {
        height: 170px;
        padding: 10px;
    }

    .login-logo {
        width: 150px !important;
        height: 150px !important;
        max-width: 150px !important;
        max-height: 150px !important;
    }

}

/* ======================================================
   LOGIN PAGE
   ====================================================== */

.login-page {
    background: #f3f6fa;
}


/* ======================================================
   LOGIN CARD
   ====================================================== */

.login-card {
    overflow: hidden;
    border-radius: 18px;
}


/* ======================================================
   LOGO SEDIA
   ====================================================== */

.login-brand {
    width: 100%;
    height: 190px;

    background: #0b3d6e;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 10px;

    overflow: hidden;
}


.login-logo {
    width: 170px !important;
    height: 170px !important;

    max-width: 170px !important;
    max-height: 170px !important;

    min-width: 0 !important;
    min-height: 0 !important;

    object-fit: contain;
    object-position: center;

    display: block;
}


/* ======================================================
   LOGIN FORM
   ====================================================== */

.login-card .form-label {
    font-size: 13px;
    font-weight: 500;
    color: #374151;
}


.login-card .form-control,
.login-card .input-group-text,
.login-card .btn {
    min-height: 42px;
}


.login-card .form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.12);
}


/* ======================================================
   LOGIN BUTTON
   ====================================================== */

.login-card .btn-primary {
    font-weight: 500;
}


/* ======================================================
   MOBILE
   ====================================================== */

@media (max-width: 576px) {

    .login-brand {
        height: 170px;
        padding: 8px;
    }

    .login-logo {
        width: 150px !important;
        height: 150px !important;

        max-width: 150px !important;
        max-height: 150px !important;
    }

    .login-card {
        border-radius: 16px;
    }

}

/* =====================================================
   SIDEBAR BRAND
===================================================== */

.sidebar-brand {
    height: 100px;
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 10px 15px;

    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-brand-logo {
    width: 150px;
    height: 85px;

    object-fit: contain;
    object-position: center;

    display: block;
}