﻿/* ---------------------------- */
/* Body & Base Styles */
/* ---------------------------- */
body {
    overflow-x: hidden;
    background-color: #f8f9fa;
    margin: 0;
    font-family: Arial, sans-serif;
}

/* ---------------------------- */
/* Sidebar */
/* ---------------------------- */
#sidebar {
    position: fixed;
    top: 0;
    left: -320px;
    width: 320px;
    height: 100vh;
    background-color: #ffffff;
    border-right: 1px solid #dee2e6;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    z-index: 1050;
}

    #sidebar.active {
        left: 0;
    }

    #sidebar .sidebar-header {
        padding: 0.8rem 1rem;
        background-color: #f1f3f5;
        border-bottom: 1px solid #dee2e6;
        font-weight: 600;
        font-size: 0.95rem;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    /* Sidebar links */
    #sidebar ul {
        list-style: none;
        margin: 0;
        padding: 0;
    }

        #sidebar ul li a {
            display: block;
            padding: 0.7rem 1.25rem;
            color: #212529;
            text-decoration: none;
            transition: background 0.2s ease;
        }

            #sidebar ul li a:hover {
                background-color: #e9ecef;
            }

    #sidebar hr {
        margin: 0;
        border-color: #dee2e6;
        opacity: 1;
    }

/* Active NavLink */
.nav-link.active {
    background-color: #e7f1ff;
    border-left: 3px solid #0d6efd;
    color: #0d6efd !important;
}

/* ---------------------------- */
/* Overlay for mobile sidebar */
/* ---------------------------- */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1040;
}

    .overlay.active {
        opacity: 1;
        visibility: visible;
    }

/* ---------------------------- */
/* Content Area */
/* ---------------------------- */
#content {
    transition: all 0.3s ease;
    padding-top: 55px; /* space for fixed navbar */
    padding-left: 15px;
    padding-right: 15px;
    min-height: 100vh;
}

    /* Shift content when sidebar is open */
    #content.sidebar-open {
        margin-left: 320px;
    }

/* ---------------------------- */
/* Top Navbar */
/* ---------------------------- */
.custom-navbar {
    height: 50px;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    background-color: #ffffff;
    border-bottom: 1px solid #dee2e6;
    position: fixed;
    width: 100%;
    z-index: 1030;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}


/* Close button for sidebar */
.close-btn {
    font-size: 1.8rem;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    line-height: 1;
}

/* ---------------------------- */
/* Responsive adjustments */
/* ---------------------------- */
@media (min-width: 768px) {
    #sidebar {
        left: 0;
    }

    .overlay {
        display: none;
    }

    #content {
        margin-left: 320px;
        padding: 20px;
    }

    #sidebar .close-btn {
        display: none;
    }
}

@media (max-width: 767px) {
    #content {
        margin-left: 0;
        padding: 15px;
    }

    #sidebar {
        width: 250px;
    }

    #content.sidebar-open {
        margin-left: 0; /* do not shift content, overlay handles view */
    }
}

/* ---------------------------- */
/* Utility Classes */
/* ---------------------------- */
.mt-navbar {
    margin-top: 55px; /* spacing for fixed navbar */
}
/* Toggle button */
.toggle-btn {
    font-size: 1.8rem;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    line-height: 1;
}

/* Hide toggle on desktop */
@media (min-width: 768px) {
    .toggle-btn {
        display: none;
    }
}


.logo-icon {
    height: 28px;
    width: 28px;
    border-radius: 6px;
    object-fit: contain;
    transition: transform 0.2s ease-in-out;
}

    .logo-icon:hover {
        transform: scale(1.1);
    }
.custom-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background-color: #ffffff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 0 15px;
    z-index: 1000;
}

.toggle-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}
 
