:root {
    --sidebar-width: 250px;
    --header-height: 56px;
    --primary-color: #0d6efd;
    --sidebar-bg: #343a40;
    --sidebar-color: #c2c7d0;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: #f4f6f9;
    overflow-x: hidden;
}

/* Layout */
.wrapper {
    display: flex;
    width: 100%;
    align-items: stretch;
}

/* Sidebar */
#sidebar {
    min-width: var(--sidebar-width);
    max-width: var(--sidebar-width);
    background: var(--sidebar-bg);
    color: var(--sidebar-color);
    transition: all 0.3s;
    min-height: 100vh;
}

#sidebar .sidebar-header {
    padding: 0.875rem 1.25rem;
    background: rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid #4b545c;
}

#sidebar ul.components {
    padding: 20px 0;
}

#sidebar ul li a {
    padding: 10px 1.25rem;
    font-size: 1rem;
    display: block;
    color: var(--sidebar-color);
    text-decoration: none;
    display: flex;
    align-items: center;
}

#sidebar ul li a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

#sidebar ul li a i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

#sidebar ul li.active>a {
    color: #fff;
    background: var(--primary-color);
}

/* Content */
#content {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Login Page Only */
body.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    background: #e9ecef;
}

.login-box {
    width: 360px;
}

.card-primary.card-outline {
    border-top: 3px solid var(--primary-color);
}

/* Responsive */
@media (max-width: 768px) {
    #sidebar {
        margin-left: calc(-1 * var(--sidebar-width));
    }

    #sidebar.active {
        margin-left: 0;
    }
}