/* === Base Typography === */
html {
    font-size: 14px;
    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    margin: 0;
    font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f8f9fa;
    color: #212529;
}

/* === Wrapper Layout === */
#wrapper {
    display: flex;
    width: 100%;
    min-height: 100vh;
    overflow-x: hidden;
    transition: all 0.3s ease;
}

/* === Sidebar === */
#sidebar {
    width: 250px;
    min-width: 250px;
    background: #212529;
    color: #fff;
    transition: all 0.3s ease;
    overflow-y: auto;
}

/* Collapsed sidebar */
#wrapper.toggled #sidebar {
    width: 80px;
    min-width: 80px;
    text-align: center;
}

/* Hide text when collapsed */
#wrapper.toggled .nav-link .text,
#wrapper.toggled button .text {
    display: none;
}

/* Keep icons centered when collapsed */
#wrapper.toggled .nav-link {
    justify-content: center;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

/* Sidebar links */
.nav-link {
    color: #adb5bd;
    transition: all 0.2s ease;
}

    .nav-link:hover,
    .nav-link.active {
        background-color: #0d6efd;
        color: #fff !important;
    }

/* Submenu styling */
.submenu .nav-link {
    padding-left: 1.5rem;
    font-size: 0.9rem;
}

    .submenu .nav-link.active {
        background-color: #0b5ed7 !important;
        color: #fff !important;
    }

/* === Page Content === */
#page-content-wrapper {
    flex: 1;
    min-height: 100vh;
    background-color: #f8f9fa;
    transition: all 0.3s ease;
}

/* Navbar */
.navbar {
    padding: 0.75rem 1rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0,0,0,0.075);
}

/* Utility */
.btn:focus,
.form-control:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #0d6efd;
}
