﻿body {
    background-color: #f8f9fa;
}
/* Sidebar */
.sidebar {
    height: 100vh;
    width: 250px;
    position: fixed;
    top: 0;
    left: 0;
    background-color: #0d6efd;
    color: white;
    transition: all 0.3s;
    padding-top: 60px;
}

    .sidebar a {
        color: white;
        display: block;
        padding: 12px 20px;
        text-decoration: none;
        font-weight: 500;
    }

        .sidebar a:hover {
            background-color: #0b5ed7;
            text-decoration: none;
        }

    .sidebar .active {
        background-color: #084298;
    }

/* Top Navbar */
.topbar {
    height: 60px;
    width: 100%;
    background-color: white;
    border-bottom: 1px solid #dee2e6;
    position: fixed;
    top: 0;
    left: 250px;
    z-index: 10;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Main Content */
.content {
    margin-left: 250px;
    padding: 80px 25px 25px 25px;
}

.logo {
    position: fixed;
    top: 0;
    left: 0;
    height: 60px;
    width: 250px;
    background-color: #0b5ed7;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 22px;
    font-weight: bold;
    color: #fff;
}

.sidebar .nav-title {
    text-transform: uppercase;
    font-size: 13px;
    padding: 8px 20px;
    opacity: 0.8;
}

/* Dropdown Wrapper */
.sidebar-dropdown .sidebar-link-with-arrow {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Arrow */
.sidebar-dropdown .dropdown-arrow {
    font-size: 14px;
    transition: 0.3s;
}

/* Rotate when open */
.sidebar-dropdown.open .dropdown-arrow {
    transform: rotate(180deg);
}

/* Submenu (hidden by default) */
.sidebar-submenu {
    display: none;
    background-color: rgba(255,255,255,0.08);
}
    /* Submenu items */
    .sidebar-submenu .submenu-item {
        padding: 10px 40px;
        display: block;
        color: white;
        font-size: 14px;
    }

        .sidebar-submenu .submenu-item:hover {
            background-color: #0b5ed7;
            color: #fff;
        }
    

/* Left side (icon + text) */
.sidebar-link-left {
    display: flex;
    align-items: center;
    gap: 8px; /* space between icon & text */
    white-space: nowrap;
}

/* Right arrow */
.sidebar-link-with-arrow .dropdown-arrow {
    margin-left: auto;
}
/* Show submenu only while hovering, without affecting the click logic */
.sidebar-dropdown:hover .sidebar-submenu {
    display: block !important;
}
