
/* === Base CSS for Mitt-Sameie === */

body {
    font-family: 'Segoe UI', sans-serif;
    background-color: var(--bs-body-bg);
    color: var(--bs-body-color);
}

/* Sidebar layout */
#sidebar {
    min-width: 220px;
}

#sidebar .section-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #adb5bd;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

#sidebar .nav-link {
    color: #dee2e6;
    padding-left: 0.5rem;
    border-radius: 0.25rem;
}

#sidebar .nav-link:hover {
    background-color: rgba(255,255,255,0.1);
    color: #ffffff;
}

#sidebar hr {
    border-color: #495057;
    margin: 1rem 0;
}

@media (max-width: 768px) {
    #sidebar {
        position: fixed;
        top: 0;
        left: -220px;
        height: 100vh;
        z-index: 1040;
        background-color: #212529;
        transition: left 0.3s ease-in-out;
    }

    #sidebar.active {
        left: 0;
    }

    .sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 1030;
        display: none;
    }

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

main {
    flex-grow: 1;
}

/* Dark mode overrides */
body.dark-mode {
    background-color: #121212;
    color: #ffffff;
}

body.dark-mode .bg-dark {
    background-color: #1e1e1e !important;
}

body.dark-mode .bg-primary {
    background-color: #0d6efd !important;
}

body.dark-mode .text-white {
    color: #ffffff !important;
}

body.dark-mode .nav-link {
    color: #cccccc;
}

body.dark-mode .nav-link:hover {
    background-color: rgba(255,255,255,0.1);
    color: #ffffff;
}
