/* ===============================
   GLOBAL
================================ */

body {

    background-color:#f5f7fb;

    color:#1e293b;

    font-family:
    "Segoe UI",
    "Inter",
    Arial,
    sans-serif;

    overflow-x:hidden;

}


/* ===============================
   SIDEBAR
   (LAYOUT TETAP)
================================ */

.sidebar {

    background-color:#111827;

    background-image:
    linear-gradient(
        160deg,
        #111827 0%,
        #1e3a8a 50%,
        #3730a3 100%
    );

    color:white;

    box-shadow:
    4px 0 20px rgba(0,0,0,.18);

}


/* Desktop */

@media (min-width:768px) {

    .sidebar-desktop{

        position: fixed;

        top: 0;

        left: 0;

        width: 280px;

        height: 100vh;

        display: flex;

        flex-direction: column;

    }

    .sidebar-menu{

        flex: 1;

        overflow-y: auto;

        overflow-x: hidden;

    }

    .main-content{

        margin-left:280px;

        padding:2rem;

    }

}

.sidebar-menu::-webkit-scrollbar{

    width:6px;

}

.sidebar-menu::-webkit-scrollbar-thumb{

    background:rgba(255,255,255,.35);

    border-radius:10px;

}

.sidebar-menu::-webkit-scrollbar-thumb:hover{

    background:rgba(255,255,255,.55);

}



/* Mobile */

@media (max-width:767.98px) {


    .main-content {

        padding:1rem;

    }


    .sidebar-mobile {

        width:280px;

        border:none;

    }

}



/* ===============================
   SIDEBAR MENU
================================ */


.sidebar .nav-link {

    color:
    rgba(255,255,255,.75);

    transition:
    all .25s ease;

    border-radius:.7rem;

    padding:.75rem 1rem;

    margin-bottom:.35rem;

    border-left:
    4px solid transparent;

}



.sidebar .nav-link:hover {


    background:
    rgba(255,255,255,.15);


    color:white;


    border-left-color:
    #fbbf24;


    transform:
    translateX(5px);


    box-shadow:

    0 5px 15px
    rgba(0,0,0,.15);

}



.sidebar .nav-link.active {


    background:
    rgba(255,255,255,.22);


    color:white;


    font-weight:bold;


    border-left-color:
    #fbbf24;


    box-shadow:

    0 8px 20px
    rgba(0,0,0,.25);

}



/* Header Sidebar */


.sidebar-header {


    border-bottom:
    1px solid
    rgba(255,255,255,.2);


    padding-bottom:
    1.5rem;

}



.sidebar-header img {


    transition:.3s ease;

}



.sidebar-header img:hover {


    transform:
    scale(1.08)
    rotate(3deg);

}



/* ===============================
   CONTENT ANIMATION
================================ */


.main-content {


    animation:
    pageShow .35s ease;

}



@keyframes pageShow {


    from {

        opacity:0;

        transform:
        translateY(12px);

    }


    to {

        opacity:1;

        transform:
        translateY(0);

    }

}



/* ===============================
   CARD PREMIUM
================================ */


.card {


    border:none;


    border-radius:
    16px;


    background:#ffffff;


    box-shadow:

    0 8px 25px
    rgba(15,23,42,.08);


    transition:
    all .3s ease;


}



.card:hover {


    transform:
    translateY(-4px);


    box-shadow:

    0 15px 35px
    rgba(15,23,42,.14);


}



.card-header {


    background:

    linear-gradient(
        135deg,
        #ffffff,
        #f8fafc
    );


    color:#1e293b;


    border-bottom:

    1px solid
    #e5e7eb;


    font-weight:600;


    border-radius:

    16px 16px 0 0 !important;


}



/* ===============================
   BUTTON MODERN
================================ */


.btn {


    border-radius:
    10px;


    transition:
    all .25s ease;


}



.btn:hover {


    transform:
    translateY(-2px);


    box-shadow:

    0 8px 18px
    rgba(0,0,0,.15);

}



/* ===============================
   FORM INPUT
================================ */


.form-control,
.form-select {


    border-radius:
    10px;


    border:
    1px solid #dbe2ea;


    transition:
    .25s ease;


}



.form-control:focus,
.form-select:focus {


    border-color:
    #2563eb;


    box-shadow:

    0 0 0 .25rem
    rgba(37,99,235,.15);


}



/* ===============================
   TABLE
================================ */


.table {


    border-radius:
    12px;


    overflow:hidden;


}



.table thead {


    background:

    linear-gradient(
        135deg,
        #1e3a8a,
        #2563eb
    );


    color:white;


}



.table tbody tr {


    transition:
    .2s ease;


}



.table tbody tr:hover {


    background:

    #eff6ff;


    transform:

    scale(1.005);


}



/* ===============================
   BADGE
================================ */


.badge {


    padding:

    .45rem .8rem;


    border-radius:

    20px;


    font-weight:

    600;


}



/* ===============================
   AUTOCOMPLETE
================================ */


.ui-autocomplete {


    position:absolute;


    cursor:default;


    z-index:1055 !important;


    background:#ffffff !important;


    border:

    1px solid #ced4da !important;


    box-shadow:

    0 0.5rem 1rem
    rgba(0,0,0,.15) !important;


    padding:.5rem 0 !important;


    list-style-type:none !important;

}



.ui-menu-item {


    padding:0 !important;

}



.ui-menu-item-wrapper {


    display:block;


    padding:.5rem 1rem !important;


    color:#212529 !important;


    text-decoration:none;

}



.ui-state-active,
.ui-widget-content .ui-state-active {


    background:#2563eb !important;


    color:white !important;


    border:none !important;


}