:root {
    --sidebar-width:300px;
    --sidebar-mini-width:60px;
    /* Colors */
    --bs-primary: #2563eb;
    --bs-success: #10b981;
    --bs-warning: #f59e0b;
    --bs-danger: #ef4444;
    --bs-info: #06b6d4;

    /* Neutral */
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;

    /* Radius */
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 18px;
    --radius-xl: 24px;

    /* Shadow */
    --shadow-sm: 0 2px 8px rgba(15, 23, 42, .05);
    --shadow-md: 0 8px 24px rgba(15, 23, 42, .08);
    --shadow-lg: 0 16px 40px rgba(15, 23, 42, .12);

    --kopdes-blue: #2563eb;
    --kopdes-green: #10b981;

    /* Animation */
    --transition: all .25s ease;
}

body {
    font-family: 'Inter', sans-serif;
    background: #f8fafc;
    color: #334155;
    font-size: .9rem;
}



.sidebar-fixed .sidebar {
    width: var(--sidebar-width) !important;
}
.sidebar-fixed .main,
.sidebar-fixed .app-footer {
    margin-left: var(--sidebar-width) !important;
    transition: .25s ease;
}
.sidebar-hidden .sidebar,
.sidebar-fixed.sidebar-hidden .sidebar {
    margin-left: calc(-1 * var(--sidebar-width)) !important;
}
.sidebar-fixed.sidebar-hidden .main,
.sidebar-fixed.sidebar-hidden .app-footer {
    margin-left: 0 !important;
}
.main {
    margin-left: var(--sidebar-width) !important;
}

.sidebar {

    width: 300px !important;

    flex: 0 0 300px !important;

    max-width: 300px !important;
}

.sidebar-nav{
    width:100% !important;
    max-width:100% !important;
}
.sidebar .nav{
    width:100% !important;
}

a {
    text-decoration: none;
}



.card {
    border: none;
    border-radius: 18px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    overflow: hidden;
}

.card:hover {
    box-shadow: var(--shadow-md);
}

.card-header {
    background: #fff;
    border-bottom: 1px solid #eef2f7;
    padding: 1rem 1.25rem;
    font-weight: 600;
}

.card-body {
    padding: 1.5rem;
}

.btn {
    border-radius: 12px;
    font-weight: 600;
    padding: .7rem 1.2rem;
    transition: var(--transition);
}

.btn-primary {

    background: linear-gradient(135deg,
            var(--kopdes-blue),
            var(--kopdes-green));

    border: none;

    color: white;

    box-shadow:
        0 4px 14px rgba(37, 99, 235, .35);

}

.btn-primary:hover {

    background: linear-gradient(135deg,
            #3559be 0%,
            #3227aa 100%);

    transform: translateY(-2px);

    box-shadow:
        0 10px 25px rgba(37, 99, 235, .45);
}

.btn-success {

    background: linear-gradient(135deg,
            #10b981,
            #059669);

    border: none;

    box-shadow:
        0 4px 14px rgba(16, 185, 129, .35);
}

.btn-success:hover {

    background: linear-gradient(135deg,
            #67be35 0%,
            #41aa27 100%);

    transform: translateY(-2px);

    box-shadow:
        0 10px 25px rgba(37, 235, 70, 0.45);
}

.btn-danger {

    background: linear-gradient(135deg,
            #ef4444,
            #8d1919);

    border: none;
}

.btn-secondary {

    background: linear-gradient(135deg,
            #b1b1b1,
            #6e6e6e);

    border: none;
}

.btn-glass {

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

    backdrop-filter: blur(12px);

    border: 1px solid rgba(255, 255, 255, .3);

    color: white;
}

.btn-primary:hover {

    box-shadow:
        0 0 20px rgba(37, 99, 235, .35),
        0 0 40px rgba(79, 70, 229, .20);

}

.btn-primary {

    background:
        linear-gradient(135deg,
            #2563eb,
            #4f46e5,
            #7c3aed);

    background-size: 200% 200%;

    border: none;

    color: white;

    font-weight: 600;

    border-radius: 14px;

    transition: .4s;

    box-shadow:
        0 8px 24px rgba(79, 70, 229, .25);
}

.btn-primary:hover {

    background-position: right center;

    transform: translateY(-2px);

    box-shadow:
        0 15px 35px rgba(79, 70, 229, .35);
}






.form-control,
.form-select {

    border: 1px solid #e2e8f0;
    border-radius: 12px;
    min-height: 48px;

    padding: .75rem 1rem;

    transition: var(--transition);
}

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

    border-color: #2563eb;

    box-shadow:
        0 0 0 4px rgba(37, 99, 235, .15);

}

.input-group-text {
    background: #f8fafc;
    border-color: #e2e8f0;
}

.table {

    border-collapse: separate;
    border-spacing: 0;

    background: #fff;
}

.table thead th {

    background: #f8fafc;

    color: #64748b;

    font-weight: 600;

    border: none;

    /* padding: 1rem; */
}

.table tbody td {

    /* padding: 1rem; */

    border-top: 1px solid #f1f5f9;
}

.table-hover tbody tr:hover {

    background: #f8fafc;
}

.badge {

    border: none;
    border-radius: 999px;
    padding: .25rem .65rem;
    font-size: .55rem;
    font-weight: 400;
    letter-spacing: .1px;
}

.badge-info,
.bg-info {

    background: linear-gradient(135deg,
            #06b6d4,
            #3b82f6) !important;

    color: #fff !important;

    box-shadow:
        0 4px 12px rgba(6, 182, 212, .25);
}

.badge-success,
.bg-success {

    background: linear-gradient(135deg,
            #10b981,
            #22c55e) !important;

    color: #fff !important;

    box-shadow:
        0 4px 12px rgba(16, 185, 129, .25);
}

.badge-warning,
.bg-warning {

    background: linear-gradient(135deg,
            #f59e0b,
            #f97316) !important;

    color: #fff !important;

    box-shadow:
        0 4px 12px rgba(245, 158, 11, .25);
}

.badge-danger,
.bg-danger {

    background: linear-gradient(135deg,
            #ef4444,
            #dc2626) !important;

    color: #fff !important;

    box-shadow:
        0 4px 12px rgba(239, 68, 68, .25);
}

.badge-primary,
.bg-primary {

    background: linear-gradient(135deg,
            #2563eb,
            #7c3aed) !important;

    color: #fff !important;

    box-shadow:
        0 4px 12px rgba(79, 70, 229, .25);
}

.badge-active {

    background: linear-gradient(135deg,
            #10b981,
            #34d399);

    color: white;
}

.badge-pending {

    background: linear-gradient(135deg,
            #f59e0b,
            #fbbf24);

    color: white;
}

.badge-inactive {

    background: linear-gradient(135deg,
            #64748b,
            #475569);

    color: white;
}

.modal-content {

    border: none;

    border-radius: 24px;

    overflow: hidden;

    box-shadow: var(--shadow-lg);
}

.modal-header {

    border-bottom: 1px solid #eef2f7;
}

.modal-footer {

    border-top: 1px solid #eef2f7;
}

.navbar {

    background: rgba(255, 255, 255, .9) !important;

    backdrop-filter: blur(12px);

    border-bottom: 1px solid #eef2f7;
}

.sidebar {

    background: #ffffff;

    border-right: 1px solid #eef2f7;
}

.sidebar .nav-link {

    border-radius: 12px;

    margin-bottom: 4px;

    color: #475569;

    padding: .85rem 1rem;
}

.sidebar .nav-link:hover {

    background: #f8fafc;
}

.sidebar .nav-link.active {

    background: #2563eb;

    color: white;
}

.dropdown-menu {

    border: none;

    border-radius: 16px;

    box-shadow: var(--shadow-md);

    padding: .5rem;
}

.dropdown-item {

    border-radius: 10px;
}

.dropdown-item:hover {

    background: #f8fafc;
}

.page-link {

    border: none;

    margin: 0 3px;

    border-radius: 10px;

    color: #334155;
}

.page-item.active .page-link {

    background: #2563eb;
}



.stat-card {

    background: white;

    border-radius: 20px;

    padding: 24px;

    box-shadow: var(--shadow-sm);

    transition: .3s;
}

.stat-card:hover {

    transform: translateY(-3px);

    box-shadow: var(--shadow-md);
}

.stat-title {

    color: #64748b;

    font-size: .85rem;
}

.stat-value {

    font-size: 2rem;

    font-weight: 700;

    color: #0f172a;
}

html {
    scroll-behavior: smooth;
}

* {
    -webkit-font-smoothing: antialiased;
}

#overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    /* Semi-transparent black background */
    z-index: 9999;
    /* Make sure it's on top of everything else */
}

/* CSS for the loading icon (you can replace this with your preferred loading indicator) */
.loading-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* =====================================
   SIDEBAR MODERN KOPDES
===================================== */

.sidebar{
    width:300px !important;
    flex:0 0 300px !important;
    max-width:300px !important;
    background:#ffffff;
    border-right:1px solid #e2e8f0;
}

.sidebar-nav{
    width:100%;
    padding:12px;
}

/* =====================================
   MENU UTAMA
===================================== */

.sidebar .nav-item{
    margin-bottom:6px;
}

.sidebar .nav-link{

    display:flex;
    align-items:center;

    min-height:56px;

    padding:14px 18px;

    border-radius:14px;

    font-size:15px;

    font-weight:600;

    color:#475569 !important;

    transition:all .25s ease;
}

/* Hover */

.sidebar .nav-link:hover{

    background:#f8fafc;

    color:#2563eb !important;

    transform:translateX(4px);
}

/* Icon */

.sidebar .nav-link i{

    width:28px;

    margin-right:12px;

    font-size:18px;
}

/* =====================================
   MENU AKTIF
===================================== */

.sidebar .nav-item.active > .nav-link,
.sidebar .nav-dropdown.open > .nav-link,
.sidebar .nav-dropdown.show > .nav-link{

    background:
        linear-gradient(
            135deg,
            #2563eb,
            #10b981
        );

    color:#ffffff !important;

    box-shadow:
        0 8px 20px rgba(37,99,235,.25);
}

.sidebar .nav-item.active > .nav-link i,
.sidebar .nav-dropdown.open > .nav-link i{

    color:#ffffff;
}

/* =====================================
   SUBMENU CONTAINER
===================================== */

.nav-dropdown-items{

    margin-top:8px;

    padding:8px;

    border-radius:14px;

    background:#1e293b;
}

/* =====================================
   SUBMENU ITEM
===================================== */

.nav-dropdown-items .nav-link{

    min-height:42px;

    padding:10px 16px !important;

    margin-bottom:4px;

    border-radius:10px;

    background:transparent;

    color:#cbd5e1 !important;

    font-size:13px !important;

    font-weight:500;
}

/* Hover submenu */

.nav-dropdown-items .nav-link:hover{

    background:#334155;

    color:#ffffff !important;

    transform:none;
}

/* Active submenu */

.nav-dropdown-items .nav-link.active{

    background:
        linear-gradient(
            135deg,
            #9c0790,
            #334155
        );

    color:#ffffff !important;

    font-weight:600;
}

/* Menu utama */

.sidebar .nav-link,
.sidebar .nav-dropdown-toggle{

    color:#1e293b !important;
}

/* Icon menu utama */

.sidebar .nav-link i{

    color:#475569 !important;
}

.sidebar .nav-link:hover{

    color:#0f172a !important;
}
.sidebar .nav-item.active > .nav-link,
.sidebar .nav-dropdown.open > .nav-link,
.sidebar .nav-dropdown.show > .nav-link{

    color:#ffffff !important;
}

.sidebar .nav-item.active > .nav-link i,
.sidebar .nav-dropdown.open > .nav-link i{

    color:#ffffff !important;
}
.nav-dropdown-items .nav-link{

    color:#e2e8f0 !important;
}
.nav-dropdown-items .nav-link:hover{

    color:#ffffff !important;
}
.bg-none{
    background-color:transparent !important;
}
.sidebar{
    height:100vh !important;
}

.app-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 0 1.25rem;
    min-height: 50px;
    color: #64748b;
    background: #fff;
    border-top: 1px solid #eef2f7;
}

@media (max-width: 991px) {
    .sidebar-fixed .main,
    .sidebar-fixed .app-footer {
        margin-left: 0 !important;
    }

    .sidebar-mobile-show .main,
    .sidebar-mobile-show .app-footer {
        margin-left: var(--sidebar-width) !important;
    }
}

/* ── Responsive App Header ── */
.app-header-responsive {
    height: auto;
    min-height: 55px;
    flex-wrap: nowrap;
    padding: 0;
    z-index: 1030;
}

.app-header-inner {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 55px;
    padding: 0 0.5rem;
    gap: 0.25rem;
}

.app-header-left {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.app-header-brand {
    display: flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    flex-shrink: 0;
    line-height: 1;
}

.app-header-brand img {
    max-height: 44px;
    width: auto;
    display: block;
}

.app-header-center {
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
}

.app-header-nav {
    display: none;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    margin-right: auto;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.app-header-nav::-webkit-scrollbar {
    display: none;
}

.app-header-nav .nav-item {
    flex-shrink: 0;
}

.app-header-nav .nav-link {
    white-space: nowrap;
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
}

.app-header-right {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    flex-shrink: 0;
    margin-left: auto !important;
}

.app-header-right .nav-item {
    display: flex;
    align-items: center;
}

.app-header-right .btn-sm {
    white-space: nowrap;
}

.app-header-teller .btn-sm {
    margin: 0 0.25rem;
}

.app-header-mobile-dropdown {
    min-width: 200px;
}

.app-header-mobile-dropdown .dropdown-item {
    padding: 0.6rem 1rem;
    font-size: 0.875rem;
}

.app-header-mobile-dropdown .dropdown-item i {
    width: 1.25rem;
    margin-right: 0.5rem;
    text-align: center;
}

@media (min-width: 768px) {
    .app-header-nav {
        display: flex;
    }
}

@media (max-width: 991.98px) {
    .app-header-brand img {
        max-height: 38px;
    }

    .app-header-brand {
        padding: 0.25rem 0.5rem;
    }

    #lokasiKerjaDashboard .btn {
        max-width: 120px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }

    .app-header-teller .btn-sm {
        font-size: 0.7rem;
        padding: 0.2rem 0.45rem;
    }
}

@media (max-width: 575.98px) {
    .app-header-inner {
        padding: 0 0.25rem;
        gap: 0;
    }

    .app-header-brand {
        padding: 0.25rem;
    }

    .app-header-brand img {
        max-height: 32px;
    }

    .app-header-right .nav-item {
        min-width: auto;
    }

    .app-header-right .navbar-toggler {
        min-width: 40px;
        padding: 0.15rem 0;
    }

    .app-header-right .img-avatar {
        height: 28px !important;
        margin: 0 6px !important;
    }

    #lokasiKerjaDashboard .btn {
        max-width: 90px;
    }

    .app-header-teller {
        display: none;
    }
}

@media (max-width: 767.98px) {
    .app-header-responsive.navbar {
        position: fixed !important;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
    }

    body.header-fixed .app-body {
        margin-top: 55px;
    }
}