body {
	background-color: #f1f4f6;;
	font-family: 'Roboto', sans-serif;
	/* disable selection */
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
	/**/
	-webkit-touch-callout: none !important;
}

/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
/* Firefox */
input[type=number] {
  -moz-appearance: textfield;
}

/* Login Page */
.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a6fa8 0%, #0d3f63 100%);
    padding: 1.5rem;
}
.login-card {
    width: 100%;
    max-width: 400px;
    border: none;
    border-radius: 1rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}
.login-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    background: #eaf3fb;
    border-radius: 50%;
    padding: 12px;
}
.login-card .form-control {
    border-radius: 0.5rem;
    padding: 0.65rem 0.9rem;
    font-size: 0.95rem;
}
.login-card .form-control:focus {
    border-color: #1a6fa8;
    box-shadow: 0 0 0 0.2rem rgba(26, 111, 168, 0.2);
}
.login-card .form-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: #495057;
}
.btn-login {
    background: linear-gradient(135deg, #1a6fa8, #0d3f63);
    border: none;
    border-radius: 0.5rem;
    padding: 0.65rem;
    font-weight: 500;
    font-size: 1rem;
    letter-spacing: 0.03em;
    transition: opacity 0.2s ease;
}
.btn-login:hover {
    opacity: 0.88;
}
.login-footer {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.6);
    text-align: center;
    margin-top: 1.25rem;
}

/* ===================== LAYOUT ===================== */

:root {
    --sidebar-width: 260px;
    --navbar-height: 60px;
    --sidebar-bg: #1b2335;
    --sidebar-accent: #f6a21e;
    --sidebar-text: rgba(255, 255, 255, 0.68);
    --sidebar-hover: rgba(255, 255, 255, 0.07);
}

/* ----- Sidebar ----- */

.sidebar-nav {
    width: var(--sidebar-width) !important;
    background: var(--sidebar-bg) !important;
    border-right: none !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column;
}

/* Desktop: always visible, fixed */
@media (min-width: 992px) {
    #sidebarMenu {
        position: fixed !important;
        top: 0;
        left: 0;
        height: 100vh !important;
        transform: none !important;
        visibility: visible !important;
        z-index: 1040;
        overflow-y: auto;
    }
}

.sidebar-profile {
    background: var(--sidebar-accent);
    padding: 1.2rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
    position: relative;
}

.sidebar-close {
    position: absolute;
    top: 0.6rem;
    right: 0.75rem;
}

.sidebar-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    background-color: rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.sidebar-user-info {
    overflow: hidden;
    flex: 1;
}

.sidebar-username {
    color: #fff;
    font-weight: 600;
    font-size: 0.92rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-role {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.74rem;
    margin-top: 2px;
}

.sidebar-menu {
    flex: 1;
    overflow-y: auto;
    padding: 0.5rem 0;
}

.sidebar-nav-list,
.submenu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.68rem 1.2rem;
    color: var(--sidebar-text) !important;
    font-size: 0.88rem;
    font-weight: 400;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
    border-radius: 0;
}

.sidebar-link:hover {
    background: var(--sidebar-hover);
    color: #fff !important;
}

.sidebar-link.active {
    background: rgba(255, 255, 255, 0.1);
    color: #fff !important;
}

.nav-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
    opacity: 0.8;
    line-height: 1;
}

.arrow-icon {
    font-size: 0.9rem;
    margin-left: auto;
    flex-shrink: 0;
    opacity: 0.5;
    transition: transform 0.2s ease;
    line-height: 1;
}

.sidebar-link:not(.collapsed) .arrow-icon {
    transform: rotate(90deg);
}

.submenu-list {
    background: rgba(0, 0, 0, 0.18);
    padding: 0.2rem 0;
}

.submenu-link {
    display: flex;
    align-items: center;
    padding: 0.48rem 1.2rem 0.48rem 3.1rem;
    color: rgba(255, 255, 255, 0.58);
    text-decoration: none;
    font-size: 0.82rem;
    transition: color 0.15s, background 0.15s;
    position: relative;
}

.submenu-link::before {
    content: '';
    position: absolute;
    left: 2.15rem;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.22);
}

.submenu-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.submenu-link.active {
    color: var(--sidebar-accent) !important;
    font-weight: 500;
}

.submenu-link.active::before {
    background: var(--sidebar-accent);
}

/* ----- Top Navbar ----- */

.top-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--navbar-height);
    background: #fff;
    box-shadow: 0 1px 6px rgba(4, 9, 20, 0.08);
    display: flex;
    align-items: center;
    padding: 0 1rem;
    z-index: 1035;
    gap: 0.5rem;
}

@media (min-width: 992px) {
    .top-navbar {
        left: var(--sidebar-width);
    }
}

.sidebar-toggle {
    background: none;
    border: none;
    padding: 0.2rem;
    color: #555;
    cursor: pointer;
    line-height: 0;
    flex-shrink: 0;
}

.sidebar-toggle:focus {
    outline: none;
}

.sidebar-toggle .bi {
    font-size: 1.6rem;
    line-height: 1;
}

.top-brand {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    line-height: 0;
}

.top-brand img {
    height: 46px;
    object-fit: contain;
}

.navbar-end {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.user-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    line-height: 0;
}

.user-btn::after {
    display: none !important;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    background-color: #ddd;
    border: 2px solid #e5e5e5;
}

.dropdown-user-header {
    padding: 0.6rem 1rem 0.4rem;
}

.dd-icon {
    font-size: 1rem;
    vertical-align: -2px;
    margin-right: 4px;
}

/* ----- Main content ----- */

.main-wrapper {
    padding-top: var(--navbar-height);
    min-height: 100vh;
}

@media (min-width: 992px) {
    .main-wrapper {
        margin-left: var(--sidebar-width);
    }
}

#main {
    overflow-x: hidden;
}

.inside-main {
    padding: 1.5rem;
}