@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap");

* {
    font-family: "Montserrat", sans-serif;
}

[data-bs-theme="dark"] {
    --bs-body-bg: #0a0a0a;
    --bs-body-color: #e5e5e5;
    --bs-secondary-color: #a3a3a3;
    --bs-tertiary-color: #737373;
    --bs-border-color: rgba(255, 255, 255, 0.1);
    --bs-secondary-bg: #262626;
    --bs-tertiary-bg: #171717;
    --bs-primary: #1447e6;
    --bs-primary-rgb: 20, 71, 230;
    --bs-link-color: #6faefa;
    --bs-link-color-rgb: 111, 174, 250;
    --bs-link-hover-color: #8ab8ff;
    --bs-link-hover-color-rgb: 138, 184, 255;
    --bs-card-bg: #171717;
}

.app-layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 250px;
    background: #171717;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 1040;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease;
}

.sidebar-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-weight: 600;
    font-size: 1.1rem;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 1rem;
    overflow-y: auto;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    color: #d4d4d4;
    text-decoration: none;
    border-radius: 6px;
}

.sidebar-link:hover {
    color: #e5e5e5;
    background: #262626;
}

.sidebar-link.active {
    color: #fff;
    background: #1447e6;
}

.sidebar-close {
    display: none;
}

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

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

.main-area {
    flex: 1;
    min-width: 0;
    margin-left: 250px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.topbar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: #171717;
}

.content {
    flex: 1;
    padding: 1.5rem;
}

.form-control,
.form-select {
    background-color: #151515;
    border-color: rgba(255, 255, 255, 0.1);
    color: #e5e5e5;
}

.form-control:focus,
.form-select:focus {
    background-color: #151515;
    border-color: #6faefa;
    color: #e5e5e5;
    box-shadow: none;
}

@media (max-width: 991.98px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.open {
        transform: none;
    }

    .sidebar-close {
        display: block;
    }

    .main-area {
        margin-left: 0;
    }

    .content {
        padding: 1rem;
    }
}
