/* css/style.css */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}
body {
    background: #e4e4f7;
}
.sidebar {
    position: fixed;
    top: 0;
    left: -260px;
    height: 100vh;
    width: 260px;
    background: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    padding: 10px 0;
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
    transition: left 0.3s ease;
    z-index: 1000;
}
.sidebar.show {
    left: 0;
}
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    z-index: 900;
}
.overlay.show {
    opacity: 1;
    visibility: visible;
}
.sidebar .top-icons,
.sidebar .bottom-icons {
    width: 100%;
    display: flex;
    flex-direction: column;
}
.sidebar .top-icons .logo {
    margin: 0 auto 20px auto;
    font-size: 24px;
    cursor: pointer;
}
.sidebar .menu-item {
    width: 100%;
    padding: 15px;
    cursor: pointer;
    color: #333;
    transition: background 0.2s ease, color 0.2s ease, font-weight 0.2s ease;
    position: relative;
    display: flex;
    align-items: center;
}
.sidebar .menu-item:hover {
    background: #f1f1f1;
}
.sidebar .menu-item i {
    font-size: 18px;
    margin-right: 10px;
    transition: color 0.2s ease;
}
.sidebar .menu-item span {
    display: inline-block;
    transition: color 0.2s ease;
}
.sidebar .menu-item.active,
.sidebar .menu-item.active i,
.sidebar .menu-item.active span {
    color: orange;
    font-weight: bold;
}
.sidebar .submenu {
    max-height: 0;
    overflow: hidden;
    background: #f9f9f9;
    transition: max-height 0.3s ease;
    position: relative;
}
.sidebar .submenu a {
    display: flex;
    align-items: center;
    padding: 10px 40px;
    color: #555;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease, font-weight 0.2s ease, opacity 0.3s ease;
    position: relative;
    opacity: 0.8;
}
.sidebar .submenu a::before {
    content: "";
    position: absolute;
    left: 25px;
    width: 5px;
    height: 5px;
    background: transparent;
    border-radius: 50%;
    transition: background 0.3s ease, transform 0.3s ease;
    transform: scale(0);
}
.sidebar .submenu a.active::before {
    background: orange;
    transform: scale(1);
}
.sidebar .submenu a:hover {
    background: #ececec;
    opacity: 1;
}
.sidebar .submenu a.active {
    color: orange;
    font-weight: bold;
    opacity: 1;
}
.menu-item.active + .submenu {
    max-height: 200px;
}
.sidebar .profile {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    margin: 10px auto;
}
.sidebar .profile-name {
    text-align: center;
    margin: 5px 0;
    font-size: 14px;
}
.toggle-btn {
    position: fixed;
    top: 10px;
    left: 10px;
    background: #212529;
    color: #fff;
    border: none;
    font-size: 20px;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    z-index: 1100;
}
@media(min-width: 768px) {
    .sidebar {
        left: 0;
    }
    .toggle-btn,
    .overlay {
        display: none;
    }
}

