/*
|--------------------------------------------------------------------------
| GLOBAL
|--------------------------------------------------------------------------
*/

*{

    box-sizing:border-box;

}

body{

    background:var(--bg);

    color:var(--text);

    font-family:Inter,Arial,sans-serif;

    margin:0;

    overflow-x:hidden;

    transition:
    background .25s,
    color .25s;

}


/*
|--------------------------------------------------------------------------
| SCROLLBAR
|--------------------------------------------------------------------------
*/

::-webkit-scrollbar{

    width:10px;

}

::-webkit-scrollbar-track{

    background:var(--bg);

}

::-webkit-scrollbar-thumb{

    background:var(--border);

    border-radius:20px;

}


/*
|--------------------------------------------------------------------------
| SIDEBAR
|--------------------------------------------------------------------------
*/

.sidebar{

    width:260px;

    height:100vh;

    background:var(--sidebar);

    position:fixed;

    left:0;

    top:0;

    padding:24px 18px;

    border-right:1px solid var(--border);

    overflow-y:auto;

    z-index:1000;

    transition:.3s;

}

.sidebar a{

    display:flex;

    align-items:center;

    gap:12px;

    padding:14px 16px;

    margin-bottom:10px;

    border-radius:14px;

    color:var(--text);

    text-decoration:none;

    transition:.25s;

    font-size:15px;

}

.sidebar a:hover{

    background:var(--card);

    transform:translateX(3px);

}

.sidebar a.active{

    background:var(--card);

    border:1px solid var(--primary);

    color:var(--primary);

}

.sidebar a i{

    font-size:18px;

}

.logo{

    font-size:40px;

    margin-bottom:8px;

}

.logo-text{

    font-size:22px;

    font-weight:700;

    color:var(--primary);

    margin-bottom:35px;

}


/*
|--------------------------------------------------------------------------
| SIDEBAR MOBILE
|--------------------------------------------------------------------------
*/

.sidebar-overlay{

    position:fixed;

    inset:0;

    background:rgba(0,0,0,.6);

    z-index:999;

    opacity:0;

    visibility:hidden;

    transition:.25s;

}

.sidebar-overlay.show{

    opacity:1;

    visibility:visible;

}

.mobile-menu-btn{

    display:none;

}


/*
|--------------------------------------------------------------------------
| CONTENT
|--------------------------------------------------------------------------
*/

.content{

    margin-left:260px;

    padding:30px;

    min-height:100vh;

}


/*
|--------------------------------------------------------------------------
| TOPBAR
|--------------------------------------------------------------------------
*/

.topbar{

    display:flex;

    justify-content:space-between;

    align-items:center;

    margin-bottom:30px;

}

.topbar-right{

    display:flex;

    align-items:center;

    gap:15px;

}


/*
|--------------------------------------------------------------------------
| CARDS
|--------------------------------------------------------------------------
*/

.card-dark{

    background:var(--card);

    border-radius:20px;

    border:1px solid var(--border);

}

.stat-card{

    border-radius:20px;

    padding:24px;

    color:#fff;

    min-height:150px;

}


/*
|--------------------------------------------------------------------------
| TABLES
|--------------------------------------------------------------------------
*/

.table-dark{

    --bs-table-bg:var(--card);

    --bs-table-border-color:var(--border);

}


/*
|--------------------------------------------------------------------------
| FORMS
|--------------------------------------------------------------------------
*/

.form-control,
.form-select{

    background:var(--bg) !important;

    border:1px solid var(--border) !important;

    color:var(--text) !important;

    border-radius:12px;

    min-height:48px;

    transition:.2s;

}

.form-control::placeholder{

    color:var(--text-secondary);

}

.form-control:focus,
.form-select:focus{

    border-color:var(--primary) !important;

    box-shadow:
    0 0 0 4px rgba(34,197,94,.15) !important;

}


/*
|--------------------------------------------------------------------------
| BUTTONS
|--------------------------------------------------------------------------
*/

.btn{

    border-radius:12px;

    transition:.2s;

}

.btn:hover{

    transform:translateY(-1px);

}

.btn-success{

    background:var(--primary);

    border:none;

}

.btn-success:hover{

    background:#16a34a;

}


/*
|--------------------------------------------------------------------------
| DATATABLE
|--------------------------------------------------------------------------
*/

.dataTables_wrapper{

    color:var(--text);

}

.dataTables_filter input{

    background:var(--bg) !important;

    color:var(--text) !important;

    border:1px solid var(--border) !important;

    border-radius:10px;

}


/*
|--------------------------------------------------------------------------
| DROPDOWN
|--------------------------------------------------------------------------
*/

.dropdown-menu{

    background:var(--card);

    border:1px solid var(--border);

    border-radius:14px;

}

.dropdown-item{

    color:var(--text);

}

.dropdown-item:hover{

    background:var(--bg);

    color:var(--text);

}


/*
|--------------------------------------------------------------------------
| AUTH LAYOUT
|--------------------------------------------------------------------------
*/

.auth-body{

    background:var(--bg);

    height:100vh;

    overflow:hidden;

}

.auth-container{

    display:flex;

    height:100vh;

}

.auth-left{

    width:50%;

    display:flex;

    flex-direction:column;

    justify-content:center;

    padding:40px 50px;

    background:var(--bg);

    overflow:hidden;

}

.auth-right{

    width:50%;

    background:
    linear-gradient(
        135deg,
        #22c55e,
        #16a34a
    );

    position:relative;

    overflow:hidden;

    display:flex;

    align-items:center;

    justify-content:center;

    padding:40px;

}

.auth-brand{

    display:flex;

    align-items:center;

    gap:18px;

}

.auth-logo{

    width:70px;

    height:70px;

    border-radius:20px;

    background:#22c55e;

    display:flex;

    align-items:center;

    justify-content:center;

    font-size:32px;

    color:#fff;

}


/*
|--------------------------------------------------------------------------
| AUTH HERO
|--------------------------------------------------------------------------
*/

.auth-hero{

    max-width:500px;

    color:#fff;

}

.badge-auth{

    display:inline-flex;

    padding:10px 18px;

    border-radius:999px;

    background:rgba(255,255,255,.15);

    backdrop-filter:blur(10px);

    font-size:14px;

}

.auth-title{

    font-size:46px;

    font-weight:800;

    line-height:1.1;

    margin-bottom:24px;

}

.auth-subtitle{

    font-size:18px;

    opacity:.9;

    margin-bottom:40px;

}


/*
|--------------------------------------------------------------------------
| AUTH MOCKUP
|--------------------------------------------------------------------------
*/

.mockup-card{

    background:#0f172a;

    border-radius:24px;

    padding:18px;

    box-shadow:
    0 20px 60px rgba(0,0,0,.3);

}

.mockup-header{

    display:flex;

    gap:10px;

    margin-bottom:24px;

}

.dot{

    width:12px;

    height:12px;

    border-radius:50%;

}

.red{
    background:#ef4444;
}

.yellow{
    background:#facc15;
}

.green{
    background:#22c55e;
}

.mockup-content{

    display:flex;

    flex-direction:column;

    gap:24px;

}

.mockup-stat{

    background:#1e293b;

    padding:20px;

    border-radius:16px;

}

.mockup-chart{

    height:120px;

    border-radius:16px;

    background:
    linear-gradient(
        180deg,
        rgba(34,197,94,.4),
        rgba(34,197,94,0)
    );

}


/*
|--------------------------------------------------------------------------
| AUTH FORMS
|--------------------------------------------------------------------------
*/

.auth-left .form-control{

    background:var(--card) !important;

    border:1px solid var(--border) !important;

    color:var(--text) !important;

    height:56px;

    border-radius:14px;

    padding:0 18px;

    font-size:16px;

}

.auth-left .form-check-input{

    background:var(--card);

    border:1px solid var(--border);

}

.auth-left .btn-success{

    height:56px;

    border-radius:14px;

    font-size:16px;

    font-weight:700;

}

.auth-left a{

    color:var(--primary);

    text-decoration:none;

}

.auth-left a:hover{

    color:#16a34a;

}


/*
|--------------------------------------------------------------------------
| MOBILE
|--------------------------------------------------------------------------
*/

@media(max-width:1200px){

    .sidebar{

        transform:translateX(-100%);

    }

    .sidebar.show{

        transform:translateX(0);

    }

    .content{

        margin-left:0;

        padding:20px;

    }

    .mobile-menu-btn{

        display:flex;

        align-items:center;

        justify-content:center;

    }

    .topbar{

        flex-direction:column;

        align-items:flex-start;

        gap:15px;

    }

    .auth-right{

        position:sticky;

        top:0;

    }

    .auth-left{

        width:100%;

        padding:40px 24px;

    }

    .auth-left > div{

        width:100%;

        max-width:460px;

        margin:auto;

    }

    .auth-title{

        font-size:38px;

    }

}

/*
|--------------------------------------------------------------------------
| AUTH CARD
|--------------------------------------------------------------------------
*/

.auth-form-wrapper{

    width:100%;

    max-width:480px;

    background:var(--card);

    border:1px solid var(--border);

    border-radius:24px;

    padding:36px;

    box-shadow:
    0 20px 60px rgba(0,0,0,.08);

}


/*
|--------------------------------------------------------------------------
| INPUT ICON
|--------------------------------------------------------------------------
*/

.input-group-custom{

    position:relative;

}

.input-group-custom i{

    position:absolute;

    left:18px;

    top:50%;

    transform:translateY(-50%);

    color:var(--text-secondary);

    z-index:10;

}

.input-group-custom .form-control{

    padding-left:52px;

}


/*
|--------------------------------------------------------------------------
| LOGIN BUTTON
|--------------------------------------------------------------------------
*/

.auth-left .btn-success{

    background:
    linear-gradient(
        135deg,
        #22c55e,
        #16a34a
    );

    box-shadow:
    0 10px 25px rgba(34,197,94,.25);

}

.auth-left .btn-success:hover{

    transform:
    translateY(-2px);

    box-shadow:
    0 15px 30px rgba(34,197,94,.35);

}


/*
|--------------------------------------------------------------------------
| AUTH BACKGROUND EFFECT
|--------------------------------------------------------------------------
*/

.auth-right::before{

    content:'';

    position:absolute;

    width:500px;

    height:500px;

    background:
    rgba(255,255,255,.08);

    border-radius:50%;

    top:-100px;

    right:-100px;

}

.auth-right::after{

    content:'';

    position:absolute;

    width:300px;

    height:300px;

    background:
    rgba(255,255,255,.06);

    border-radius:50%;

    bottom:-80px;

    left:-80px;

}

/*
|--------------------------------------------------------------------------
| THEME TEXT HELPERS
|--------------------------------------------------------------------------
*/

.text-theme{

    color:var(--text) !important;

}

.text-theme-secondary{

    color:var(--text-secondary) !important;

}

.title-theme{

    color:var(--text) !important;

    font-weight:800;

    letter-spacing:-0.02em;

}

.card-title-theme{

    color:var(--text-secondary) !important;

}

.bg-theme-card{

    background:var(--card);

}

.border-theme{

    border-color:var(--border) !important;

}

/*
|--------------------------------------------------------------------------
| MOBILE AUTH FINAL
|--------------------------------------------------------------------------
*/

@media(max-width:992px){

    body.auth-body{

        overflow-x:hidden;
        overflow-y:auto;

    }

    .auth-container{

        display:block;
        width:100%;
        min-height:100vh;

    }

    .auth-left{

        width:100%;
        min-height:100vh;

        padding:
        24px
        20px
        40px;

        display:flex;
        flex-direction:column;
        justify-content:flex-start;
        align-items:center;

    }

    .auth-left > div{

        width:100%;
        max-width:420px;

    }

    .auth-right{

        display:none !important;

    }

    .auth-brand{

        width:100%;
        max-width:420px;

        margin-bottom:24px !important;

    }

    .auth-brand h2{

        font-size:32px;

    }

    .auth-logo{

        width:64px;
        height:64px;

        font-size:28px;

        border-radius:18px;

    }

    .auth-card{

        width:100%;

        padding:32px 24px !important;

        border-radius:28px;

    }

    .auth-title-login{

        font-size:56px;
        line-height:1;

        margin-bottom:12px;

    }

    .auth-subtitle-login{

        font-size:18px;

        margin-bottom:40px;

    }

    .auth-left .form-control{

        height:58px;

        font-size:16px;

    }

    .auth-left .btn-success{

        height:58px;

        font-size:18px;

    }

    .auth-footer{

        margin-top:40px;

        text-align:center;

    }

}

/*
|--------------------------------------------------------------------------
| AUTH INPUT ICON
|--------------------------------------------------------------------------
*/

.input-icon{

    position:absolute;

    left:18px;

    top:50%;

    transform:translateY(-50%);

    color:var(--text-secondary);

    z-index:10;

    font-size:18px;

}


/*
|--------------------------------------------------------------------------
| AUTH CARD
|--------------------------------------------------------------------------
*/

.auth-card{

    border-radius:28px;

    border:1px solid var(--border);

    background:var(--card);

}


/*
|--------------------------------------------------------------------------
| AUTH TITLES
|--------------------------------------------------------------------------
*/

.auth-title-login{

    font-size:56px;

    font-weight:800;

    line-height:1;

    color:var(--text);

}

.auth-subtitle-login{

    font-size:20px;

}


/*
|--------------------------------------------------------------------------
| AUTH FOOTER
|--------------------------------------------------------------------------
*/

.auth-footer{

    text-align:center;

    color:var(--text-secondary);

    font-size:14px;

}


/*
|--------------------------------------------------------------------------
| MOBILE LOGIN
|--------------------------------------------------------------------------
*/

@media(max-width:992px){

    .auth-title-login{

        font-size:48px;

    }

    .auth-subtitle-login{

        font-size:18px;

    }

}

/*
|--------------------------------------------------------------------------
| USER DROPDOWN
|--------------------------------------------------------------------------
*/

.user-dropdown-btn{

    display:flex;

    align-items:center;

    gap:12px;

    border:1px solid var(--border);

    background:var(--card);

    color:var(--text);

    padding:10px 14px;

    border-radius:16px;

    transition:.2s;

}

.user-dropdown-btn:hover{

    background:var(--card);

    border-color:var(--primary);

}

.user-avatar{

    width:42px;

    height:42px;

    border-radius:50%;

    object-fit:cover;

}

.user-avatar-placeholder{

    width:42px;

    height:42px;

    border-radius:50%;

    background:var(--primary);

    color:#fff;

    display:flex;

    align-items:center;

    justify-content:center;

    font-weight:700;

}

.user-info{

    display:flex;

    flex-direction:column;

    align-items:flex-start;

    line-height:1.1;

}

.user-name{

    font-weight:600;

    font-size:14px;

}

.user-role{

    color:var(--text-secondary);

    font-size:12px;

}

@media(max-width:768px){

    .user-info{

        display:none;

    }

}

/*
|--------------------------------------------------------------------------
| SIDEBAR USER
|--------------------------------------------------------------------------
*/

.sidebar{

    display:flex;

    flex-direction:column;

}

.sidebar-user{

    margin-top:auto;

    display:flex;

    align-items:center;

    gap:12px;

    padding:16px;

    border-top:1px solid var(--border);

    margin-top:25px;

}

.sidebar-user-avatar{

    width:48px;

    height:48px;

    border-radius:50%;

    background:var(--primary);

    color:#fff;

    display:flex;

    align-items:center;

    justify-content:center;

    font-weight:700;

    overflow:hidden;

    flex-shrink:0;

}

.sidebar-user-avatar img{

    width:100%;

    height:100%;

    object-fit:cover;

}

.sidebar-user-info{

    flex:1;

    min-width:0;

}

.sidebar-user-name{

    font-weight:600;

    color:var(--text);

    white-space:nowrap;

    overflow:hidden;

    text-overflow:ellipsis;

}

.sidebar-user-role{

    font-size:12px;

    color:var(--text-secondary);

}

.sidebar-version{

    text-align:center;

    font-size:11px;

    color:var(--text-secondary);

    padding-bottom:10px;

}

.profile-card{
    border-radius:24px;
    transition:.25s;
}

.profile-card:hover{
    transform:translateY(-3px);
}

.sidebar-avatar{
    width:48px;
    height:48px;

    border-radius:50%;

    background:#22c55e;

    color:#fff;

    display:flex;
    align-items:center;
    justify-content:center;

    font-weight:700;

    flex-shrink:0;
}

.sidebar-user-menu{
    padding:none;
}

.sidebar-logout{
    display:flex;
    align-items:center;

    gap:10px;

    margin-top:15px;

    padding:10px 12px;

    color:#ef4444;

    text-decoration:none;

    border-radius:10px;
}

.sidebar-logout:hover{
    background:rgba(239,68,68,.08);
}