:root {
    --nav-bg: #ffffff;
    --primary-gold: #eebb5d;
    --BackEnd-primary-color: #0f172a;
    --BackEnd-secondary-color: #334155;
    --BackEnd-accent-color: #0ea5e9;
    --BackEnd-accent-hover: #0284c7;
    --BackEnd-text-secondary: #8E9297;
    --BackEnd-border-color: #E0E0E0;
    --BackEnd-success-color: #198754;
    --BackEnd-danger-color: #DC3545;
    --BackEnd-warning-color: #F59E0B;
    --BackEnd-info-color: #0DCAF0;
    --BackEnd-active-color: #1B1B1B;
    --BackEnd-btn-primary-color: #1856ff;
    --BackEnd-btn-secondary-color: #5c91e7;
    --BackEnd-text-primary: #1B1B1B;
    --BackEnd-text-secondary: #4A4D52;
    --BackEnd-text-muted: #8E9297;
    --BackEnd-text-disabled: #B3B6BA;
    --BackEnd-text-on-dark: #FFFFFF;
    --BackEnd-text-accent: #eebb5d;
    --BackEnd-text-success: #198754;
    --BackEnd-text-danger: #DC3545;
    --BackEnd-text-warning: #F59E0B;
    --BackEnd-text-info: #0DCAF0;
    --BackEnd-radius-sm: 8px;
    --BackEnd-radius-md: 16px;

    --card-bg: #ffffff;
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-soft: 0 5px 15px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 10px 25px rgba(0, 0, 0, 0.1);
    --text-primary: var(--BackEnd-text-primary);
    --text-secondary: var(--BackEnd-text-secondary);
    --text-light: var(--BackEnd-text-muted);
    --primary-color: #4e73df;
    --primary: var(--BackEnd-btn-primary-color);
    --primary-soft: rgba(24, 86, 255, 0.1);
    --danger: var(--BackEnd-danger-color);
    --danger-color: var(--BackEnd-danger-color);
    --warning: var(--BackEnd-warning-color);
    --border-color: var(--BackEnd-border-color);
    --BackEnd-success-color-color: var(--BackEnd-success-color);
}

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: "Kanit", sans-serif;
}

html {
    scroll-behavior: smooth !important;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
}

._back_over_false_ {
    overflow: hidden !important;
    margin: 0 !important;
    height: 100dvh !important;
}

._sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 260px;
    background: linear-gradient(135deg, #0B0E23 0%, #2534a4 100%);
    padding: 30px 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

._sidebar .optgroup {
    color: #A3AED0;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
}

._sidebar-logo {
    color: white;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    gap: 10px;
}

._sidebar-logo i {
    color: var(--BackEnd-text-secondary);
}

._sidebar-menu {
    list-style: none;
}

._sidebar-menu li {
    margin-bottom: 10px;
}

._sidebar-menu a {
    color: #A3AED0;
    text-decoration: none;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-radius: 10px;
    transition: all 0.3s;
    font-size: 14px;
}

._sidebar-menu a:hover,
._sidebar-menu a.active {
    background: rgba(67, 24, 255, 0.1);
    color: white;
}

._sidebar-menu a.active {
    background: var(--BackEnd-active-color);
}

._sidebar-menu i {
    width: 20px;
    text-align: center;
}

.main-content {
    min-height: 100dvh;
    background-color: #f4f7fe;
    transition: margin-left 0.3s ease, width 0.3s ease;
    width: calc(100% - 260px);
    left: 260px;
}

.side_overflow {
    flex-grow: 1;
    overflow-y: auto;
    margin-bottom: 20px;
}

.side_overflow::-webkit-scrollbar {
    display: none;
}

.side_overflow {
    flex-grow: 1;
    overflow-y: auto;
}

.side_avatar {
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.avatar-circle {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #fff;
    flex-shrink: 0;
}

.side_avatar-info span {
    line-height: 1.3;
}

.side_avatar .card:hover {
    background: rgba(255, 255, 255, 0.18);
    transition: 0.25s;
}


._footer {
    background-color: #000;
    padding: 30px 0 120px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

._copyright {
    font-size: 0.9rem;
    color: #888;
    letter-spacing: 1px;
}

.floating-nav-container {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 999;
    width: 90%;
    max-width: 600px;
}

.floating-nav {
    background: var(--nav-bg);
    border-radius: 50px;
    padding: 10px 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    color: #000;
    gap: 30px;
}

.nav-link-custom {
    color: #555;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: all 0.3s;
    cursor: pointer;
    position: relative;
    padding: 5px 0;
}

.nav-link-custom:hover {
    color: var(--primary-gold);
}

.nav-link-custom.active {
    color: var(--primary-gold);
    font-weight: 600;
}

.nav-link-custom.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-gold);
    border-radius: 2px;
}

.backend_fab_container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column-reverse;
    gap: 15px;
    z-index: 2000;
}

.backend_fab_btn {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    border: none;
    background: #ffffff;
    color: #4da3ff;
    box-shadow: 0 4px 15px rgba(77, 163, 255, 0.25);
    font-size: 1.4rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.backend_fab_btn:hover {
    transform: scale(1.1);
    background: #4da3ff;
    color: #ffffff;
    box-shadow: 0 8px 25px rgba(77, 163, 255, 0.4);
}

.backend_fab_refresh:hover i {
    animation: backend_spin 1s infinite linear;
}

.backend_notify_badge {
    position: absolute;
    top: -5px;
    left: -5px;
    background: #ff4757;
    color: white;
    font-size: 0.75rem;
    font-weight: bold;
    min-width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid #fff;
    animation: backend_bounce 1s infinite;
}

.backend_notify_panel {
    position: fixed;
    top: 0;
    right: -400px;
    width: 360px;
    height: 100vh;
    background: #ffffff;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.1);
    z-index: 2050;
    transition: right 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
}

.backend_notify_panel.active {
    right: 0;
}

.backend_notify_header {
    padding: 20px;
    background: linear-gradient(135deg, #4da3ff 0%, #2b7bd6 100%);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.backend_notify_header h5 {
    margin: 0;
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.backend_btn_close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.backend_btn_close:hover {
    background: rgba(255, 255, 255, 0.4);
}

.backend_notify_body {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    background: #f4f7fe;
}

.backend_notify_item {
    background: white;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    border-left: 5px solid #ccc;
    position: relative;
    animation: backend_slideIn 0.3s;
    transition: transform 0.2s;
}

.backend_notify_item:hover {
    transform: translateY(-2px);
}

.backend_type_bill {
    border-left-color: #ff4757;
}

.backend_type_general {
    border-left-color: #4da3ff;
}

.backend_item_header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.backend_table_name {
    font-weight: 700;
    color: #2b3674;
    font-size: 1rem;
}

.backend_time_ago {
    font-size: 0.75rem;
    color: #a3aed0;
}

.backend_item_detail {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: #555;
    font-size: 0.95rem;
}

.backend_btn_complete {
    width: 100%;
    padding: 8px;
    border: 1px solid #e0e5f2;
    background: #fff;
    color: #4da3ff;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.2s;
}

.backend_btn_complete:hover {
    background: #4da3ff;
    color: white;
    border-color: #4da3ff;
}

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

@keyframes backend_bounce {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-3px);
    }
}

@keyframes backend_slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

#__toggle__bar {
    background: transparent;
    backdrop-filter: blur(20px);
    border-radius: 50px;
    display: none;
    align-items: center;
    justify-content: center;
    position: fixed;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 50px;
    color: var(--primary-gold);
    margin: 10px;
    border: none;
}

.toggle-sidebar {
    display: none;
}

@media (max-width: 1399.98px) {}

@media (max-width: 1199.98px) {}

@media (max-width: 991.98px) {
    .toggle-sidebar{
        display: flex;   
    }
    ._sidebar {
        transform: translateX(-100%);
        z-index: -10;
        transition: all .3s ease-in-out;
    }
    ._sidebar.active {
        transform: translateX(0%);
        z-index: 1000;
    }
    .main-content {
        margin: 0;
    }
}

@media (max-width: 767.98px) {}

@media (max-width: 575.98px) {
 
    .floating-nav-container {
        right: 0;
        top: 0;
        bottom: 0;
        width: 100%;
        max-width: 100%;
        display: flex;
        align-items: center;
        z-index: -10;
        justify-content: end;
        transition: all .3s ease-in-out;
    }
    .floating-nav-container.active-menu{
        z-index: 100;
    }
    #__toggle__bar {
        display: flex;
    }

    .floating-nav-container.active-menu .floating-nav {
        transform: translateX(0%);
    }

    .floating-nav {
        transition: all .3s ease-in-out;
        transform: translateX(100%);
        background: rgba(0, 0, 0, 0.5);
        height: 100%;
        width: 50%;
        flex-direction: column;
        justify-content: center;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        align-items: flex-end;
        border-radius: 0;
        border-bottom-left-radius: 50px;
        border-top-left-radius: 50px;
    }

    .nav-link-custom {
        color: #fff;
    }

}

@media (max-width: 359.98px) {}