/*=========================================================
BUATSEMUA CMS v2.0
Modern Admin Dashboard
=========================================================*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root{

    /* Primary */
    --primary:#0B6B35;
    --primary-light:#16A34A;
    --primary-soft:#DCFCE7;
    --primary-dark:#065F46;

    /* Status */
    --success:#10B981;
    --warning:#F59E0B;
    --danger:#DC2626;
    --info:#2563EB;

    /* Background */
    --bg:#F4F7FC;
    --surface:#FFFFFF;
    --surface-2:#F8FAFC;

    /* Text */
    --text:#1F2937;
    --text-light:#6B7280;

    /* Border */
    --border:#E5E7EB;

    /* Layout */
    --sidebar-width:270px;
    --topbar-height:74px;

    /* Radius */
    --radius-sm:10px;
    --radius:18px;
    --radius-lg:26px;

    /* Shadow */
    --shadow-xs:0 2px 6px rgba(0,0,0,.05);
    --shadow-sm:0 8px 18px rgba(0,0,0,.06);
    --shadow:0 15px 35px rgba(0,0,0,.08);
    --shadow-lg:0 25px 60px rgba(0,0,0,.12);

    /* Animation */
    --transition:.28s ease;

}

/*=========================================================
RESET
=========================================================*/

*{

    margin:0;
    padding:0;
    box-sizing:border-box;

}

html{

    scroll-behavior:smooth;

}

body{

    font-family:'Inter',sans-serif;

    background:
    linear-gradient(
    180deg,
    #F8FBFD 0%,
    #EEF4FA 100%
    );

    color:var(--text);

    font-size:14px;

    line-height:1.6;

    overflow-x:hidden;

}

/*=========================================================
SCROLLBAR
=========================================================*/

::-webkit-scrollbar{

    width:10px;

}

::-webkit-scrollbar-track{

    background:#eef2f7;

}

::-webkit-scrollbar-thumb{

    background:#b7c4d3;

    border-radius:20px;

}

::-webkit-scrollbar-thumb:hover{

    background:var(--primary);

}

/*=========================================================
LINK
=========================================================*/

a{

    color:inherit;

    text-decoration:none;

    transition:var(--transition);

}

/*=========================================================
WRAPPER
=========================================================*/

.wrapper{

    display:flex;

    min-height:100vh;

}

/*=========================================================
UTILITY
=========================================================*/

.shadow-sm{

    box-shadow:var(--shadow-sm);

}

.shadow{

    box-shadow:var(--shadow);

}

.shadow-lg{

    box-shadow:var(--shadow-lg);

}

.radius{

    border-radius:var(--radius);

}

.radius-lg{

    border-radius:var(--radius-lg);

}

.text-muted{

    color:var(--text-light);

}

.bg-primary{

    background:var(--primary);

    color:#fff;

}

.fade-up{

    animation:fadeUp .45s ease;

}

@keyframes fadeUp{

    from{

        opacity:0;

        transform:translateY(18px);

    }

    to{

        opacity:1;

        transform:none;

    }

}

/*=========================================================
SIDEBAR v2.0
=========================================================*/

.sidebar{

    width:var(--sidebar-width);

    position:fixed;

    top:0;
    left:0;
    bottom:0;

    background:
    linear-gradient(
        180deg,
        #0B6B35 0%,
        #0E7A40 40%,
        #065F46 100%
    );

    color:#fff;

    overflow-y:auto;

    overflow-x:hidden;

    box-shadow:
    6px 0 30px rgba(0,0,0,.18);

    transition:all .3s ease;

    z-index:1000;

}

/*=========================================================*/

.sidebar::-webkit-scrollbar{

    width:6px;

}

.sidebar::-webkit-scrollbar-thumb{

    background:rgba(255,255,255,.25);

    border-radius:20px;

}

/*=========================================================*/

.sidebar-brand{

    padding:28px 22px;

    text-align:center;

    border-bottom:1px solid rgba(255,255,255,.10);

}

/*=========================================================*/

.sidebar-logo{

    width:88px;

    height:88px;

    border-radius:50%;

    background:#fff;

    padding:8px;

    object-fit:contain;

    margin-bottom:16px;

    box-shadow:

    0 10px 25px rgba(0,0,0,.20);

}

/*=========================================================*/

.logo-placeholder{

    width:88px;

    height:88px;

    border-radius:50%;

    background:#fff;

    color:var(--primary);

    display:flex;

    align-items:center;

    justify-content:center;

    font-size:34px;

    margin:auto;

    margin-bottom:16px;

}

/*=========================================================*/

.sidebar h4{

    font-size:20px;

    font-weight:700;

    margin-bottom:6px;

}

.sidebar small{

    color:#d7f8df;

    font-size:13px;

}

/*=========================================================*/

.sidebar-menu{

    padding:18px;

}

/*=========================================================*/

.menu-title{

    font-size:11px;

    color:#c6f7d3;

    letter-spacing:2px;

    text-transform:uppercase;

    margin:

    18px

    10px

    12px;

}

/*=========================================================*/

.sidebar-menu a{

    display:flex;

    align-items:center;

    gap:14px;

    height:50px;

    padding:

    0

    18px;

    margin-bottom:8px;

    border-radius:14px;

    color:#fff;

    font-weight:500;

    transition:.25s;

    position:relative;

}

/*=========================================================*/

.sidebar-menu a i{

    width:22px;

    font-size:18px;

    text-align:center;

}

/*=========================================================*/

.sidebar-menu a:hover{

    background:

    rgba(255,255,255,.12);

    transform:translateX(5px);

}

/*=========================================================*/

.sidebar-menu a.active{

    background:#fff;

    color:var(--primary);

    font-weight:700;

    box-shadow:

    0 8px 20px

    rgba(0,0,0,.15);

}

/*=========================================================*/

.sidebar-menu a.active::before{

    content:"";

    position:absolute;

    left:-18px;

    width:6px;

    height:24px;

    border-radius:10px;

    background:#fff;

}

/*=========================================================*/

.sidebar-menu hr{

    border-color:

    rgba(255,255,255,.10);

    margin:

    22px

    0;

}

/*=========================================================*/

.logout{

    color:#ffd8d8 !important;

}

.logout:hover{

    background:#DC2626 !important;

    color:#fff !important;

}

/*=========================================================
COLLAPSE
=========================================================*/

.sidebar.collapsed{

    width:86px;

}

.sidebar.collapsed h4,

.sidebar.collapsed small,

.sidebar.collapsed .menu-title,

.sidebar.collapsed a span{

    display:none;

}

.sidebar.collapsed .sidebar-logo{

    width:52px;

    height:52px;

}

.sidebar.collapsed .logo-placeholder{

    width:52px;

    height:52px;

    font-size:24px;

}

.sidebar.collapsed a{

    justify-content:center;

    padding:0;

}

.sidebar.collapsed a i{

    font-size:20px;

    margin:0;

}

.main-wrapper.expanded{

    margin-left:86px;

}

/*=========================================================
TOPBAR v2.0
=========================================================*/

.topbar{

    position:sticky;

    top:0;

    z-index:999;

    height:74px;

    display:flex;

    justify-content:space-between;

    align-items:center;

    padding:0 28px;

    background:rgba(255,255,255,.88);

    backdrop-filter:blur(18px);

    border-bottom:1px solid rgba(0,0,0,.05);

    box-shadow:0 8px 25px rgba(0,0,0,.04);

}

/*==============================================*/

.topbar-left{

    display:flex;

    align-items:center;

    gap:18px;

}

/*==============================================*/

.btn-menu{

    width:46px;

    height:46px;

    border:none;

    border-radius:14px;

    background:#F4F6F9;

    cursor:pointer;

    transition:.25s;

}

.btn-menu:hover{

    background:var(--primary);

    color:#fff;

    transform:rotate(90deg);

}

/*==============================================*/

.page-title h4{

    margin:0;

    font-size:20px;

    font-weight:700;

    color:var(--text);

}

.page-title small{

    color:var(--text-light);

}

/*==============================================*/

.search-box{

    width:340px;

    height:46px;

    background:#fff;

    border-radius:14px;

    display:flex;

    align-items:center;

    padding:0 18px;

    border:1px solid var(--border);

    transition:.25s;

}

.search-box:focus-within{

    border-color:var(--primary);

    box-shadow:0 0 0 4px rgba(11,107,53,.08);

}

.search-box i{

    color:#999;

}

.search-box input{

    flex:1;

    border:none;

    outline:none;

    background:none;

    margin-left:12px;

    font-size:14px;

}

/*==============================================*/

.topbar-right{

    display:flex;

    align-items:center;

    gap:14px;

}

/*==============================================*/

.btn-icon{

    width:46px;

    height:46px;

    border:none;

    border-radius:14px;

    background:#F4F6F9;

    cursor:pointer;

    transition:.25s;

    position:relative;

}

.btn-icon:hover{

    background:var(--primary);

    color:#fff;

    transform:translateY(-2px);

}

/*==============================================*/

.badge-dot{

    width:9px;

    height:9px;

    border-radius:50%;

    background:#EF4444;

    position:absolute;

    right:10px;

    top:10px;

}

/*==============================================*/

.user-menu{

    display:flex;

    align-items:center;

    gap:12px;

    cursor:pointer;

    padding:8px 12px;

    border-radius:14px;

    transition:.25s;

}

.user-menu:hover{

    background:#F4F6F9;

}

/*==============================================*/

.avatar{

    width:46px;

    height:46px;

    border-radius:50%;

    display:flex;

    align-items:center;

    justify-content:center;

    background:linear-gradient(

        135deg,

        var(--primary),

        var(--primary-light)

    );

    color:#fff;

    font-weight:700;

    font-size:17px;

    box-shadow:

    0 8px 20px rgba(11,107,53,.25);

}

/*==============================================*/

.user-info{

    display:flex;

    flex-direction:column;

}

.user-info strong{

    font-size:14px;

}

.user-info small{

    color:#777;

}

/*==============================================*/

.logout-link{

    color:#999;

    font-size:18px;

    transition:.25s;

}

.logout-link:hover{

    color:#DC2626;

}

/*==============================================*/

.theme-switch{

    width:46px;

    height:46px;

    border:none;

    border-radius:14px;

    background:#F4F6F9;

    cursor:pointer;

}

/*==============================================*/

@media(max-width:992px){

.search-box{

display:none;

}

.user-info{

display:none;

}

}

@media(max-width:768px){

.topbar{

padding:0 16px;

}

.page-title{

display:none;

}

}

/*=========================================================
LOGIN PAGE
=========================================================*/

.login-page{

    min-height:100vh;

    display:flex;

    align-items:center;

    justify-content:center;

    background:
    linear-gradient(135deg,#0B6B35 0%,#16A34A 100%);

    position:relative;

    overflow:hidden;

}

.login-background{

    position:absolute;

    inset:0;

    background:

    radial-gradient(circle at top right,
    rgba(255,255,255,.15),
    transparent 35%),

    radial-gradient(circle at bottom left,
    rgba(255,255,255,.10),
    transparent 40%);

}

.login-wrapper{

    position:relative;

    z-index:2;

    width:100%;

    max-width:440px;

    padding:25px;

}

.login-card{

    background:#fff;

    border-radius:28px;

    padding:40px;

    box-shadow:0 30px 60px rgba(0,0,0,.18);

}

.brand{

    text-align:center;

    margin-bottom:30px;

}

.brand-logo{

    width:90px;

    height:90px;

    object-fit:contain;

    margin-bottom:15px;

}

.brand h2{

    font-size:28px;

    font-weight:700;

    color:#111827;

    margin-bottom:6px;

}

.brand p{

    color:#6B7280;

}

.input-group{

    display:flex;

    align-items:center;

    border:1px solid #E5E7EB;

    border-radius:14px;

    margin-bottom:18px;

    overflow:hidden;

    background:#fff;

}

.input-group span{

    width:52px;

    display:flex;

    align-items:center;

    justify-content:center;

    color:#6B7280;

}

.input-group input{

    flex:1;

    border:none;

    outline:none;

    padding:15px;

    font-size:15px;

    background:none;

}

.toggle-password{

    width:52px;

    border:none;

    background:none;

    cursor:pointer;

    color:#6B7280;

}

.login-options{

    display:flex;

    justify-content:space-between;

    align-items:center;

    margin-bottom:22px;

    font-size:14px;

}

.login-options a{

    color:#0B6B35;

    font-weight:600;

}

.btn-login{

    width:100%;

    height:52px;

    border:none;

    border-radius:14px;

    background:#0B6B35;

    color:#fff;

    font-weight:700;

    font-size:15px;

    cursor:pointer;

    transition:.3s;

}

.btn-login:hover{

    background:#16A34A;

    transform:translateY(-2px);

}

.login-footer{

    margin-top:25px;

    display:flex;

    justify-content:space-between;

    color:#6B7280;

    font-size:13px;

}

.alert{

    padding:14px 16px;

    border-radius:12px;

    margin-bottom:20px;

}

.alert-danger{

    background:#FEE2E2;

    color:#991B1B;

}

.alert-success{

    background:#DCFCE7;

    color:#166534;

}
/*=========================================================
MAIN CONTENT
=========================================================*/

.main-wrapper{

    margin-left:270px;      /* sama dengan --sidebar-width */

    min-height:100vh;

    transition:.3s;

    background:#F4F7FC;

}

.sidebar.collapsed + .main-wrapper{

    margin-left:86px;

}

/* Tablet */

@media (max-width:992px){

    .sidebar{

        transform:translateX(-100%);

    }

    .sidebar.show{

        transform:translateX(0);

    }

    .main-wrapper{

        margin-left:0;

    }

}

/* Mobile */

@media (max-width:768px){

    .main-wrapper{

        margin-left:0;

    }

}
