body { opacity: 0; }
body.loaded { opacity: 1; transition: opacity 0.3s ease; }

.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1040;
}

.sidebar-overlay.active {
    display: block;
}

.sidebar {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: rgba(8, 17, 32, 0.98);
    backdrop-filter: blur(12px);
    border-left: 1px solid rgba(99, 102, 241, 0.15);
    z-index: 1050;
    padding: 15px 20px;
    overflow-y: auto;
    transition: right 0.3s ease;
}
.sidebar.active {
    right: 0;
}

.sidebar-close {
    position: fixed;
    top: 35px;
    right: 12px;
    transform: translateY(-50%);
    z-index: 1060;
    background: none;
    border: none;
    color: #fff;
    font-size: 28px;
    line-height: 1;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: background 0.3s, opacity 0.2s;
}
.sidebar.active .sidebar-close {
    opacity: 1;
    pointer-events: auto;
}
.sidebar-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
    font-size: 1.4rem;
    font-weight: 700;
    color: #60a5fa;
    text-decoration: none;
}
.sidebar-brand img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    border-radius: 6px;
}

.sidebar-nav {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar-nav li {
    margin-bottom: 10px;
}

.sidebar-nav a {
    display: block;
    padding: 12px 16px;
    border-radius: 8px;
    color: #cbd5e1;
    text-decoration: none;
    transition: all 0.3s;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
    background: rgba(96, 165, 250, 0.1);
    color: #93c5fd;
}

.sidebar-buttons {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.sidebar-buttons .btn {
    width: 100%;
}


.navbar {
    z-index: 1000;
    contain: none !important;
}
.navbar-collapse {
    overflow: visible !important;
}
.container {
    overflow: visible !important;
}
.dropdown {
    position: relative;
}
.dropdown-menu {
    z-index: 9999 !important;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.25rem;
    font-weight: 700;
}
.navbar-brand img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    border-radius: 6px;
    display: block;
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 260px;
    justify-content: flex-end;
}
.navbar-actions .btn {
    white-space: nowrap;
}

@font-face {
    font-family: "bootstrap-icons";
    src: url("../../assets/bootstrap-icons/font/fonts/bootstrap-icons.woff2") format("woff2"),
         url("../../assets/bootstrap-icons/font/fonts/bootstrap-icons.woff") format("woff");
    font-display: block;
}

.btn-icon {
    display: inline-block;
    width: 1em;
    height: 1em;
    margin-right: 0.4em;
    vertical-align: -0.15em;
    fill: currentColor;
    flex-shrink: 0;
}