* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    min-height: 100vh;
    background: #f4f4f4;
    font-family: Arial, sans-serif;
}

.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 150;
}

.overlay.active {
    display: block;
}

.sidebar {
    width: 280px;
    background: #fff;
    padding: 20px;
    transition: transform 0.3s ease;
    position: fixed;
    height: 100%;
    z-index: 200;
    border-right: 1px solid #ddd;
}

.sidebar.collapsed {
    transform: translateX(-280px);
}

.sidebar-close {
    display: none;
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 22px;
    cursor: pointer;
}

.sidebar .sidebar-header {
    text-align: center;
    padding: 10px 15px;
}

.sidebar .sidebar-header img {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 10px;
}

.sidebar .sidebar-header h3 {
    margin: 5px 0;
    font-weight: normal;
    font-size: 14px;
}

.sidebar .sidebar-header strong {
    font-weight: bold;
}

.sidebar ul {
    padding-left: 0.5rem;
}

.sidebar ul li {
    padding-top: 5px;
    padding-bottom: 10px;
    border-radius: 6px;
    list-style: none;
    margin: 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sidebar ul li i {
    color: #333;
}

.sidebar li:hover {
    background: #f0f0f0;
}

.header {
    position: fixed;
    top: 0;
    right: 0;
    height: 60px;
    padding: 10px 20px;
    background: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: calc(100% - 280px);
    transition: margin-left 0.3s ease;
    z-index: 100;
    border-bottom: 1px solid #ddd;
}

.header.collapsed {
    width: 100%;
    margin-left: 0;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-left h3 {
    display: none;
    margin: 0;
    padding: 0;
    font-weight: bold;
    color: #f88706;
}

.toggle-icon {
    font-size: 20px;
    cursor: pointer;
    color: #333;
}

.dropdowns {
    display: flex;
    align-items: center;
}

.dropdowns .dropdown,
.dropdowns button {
    margin-right: 20px;
}

.header-icons {
    display: flex;
    align-items: center;
}

.header-icons i {
    margin-left: 15px;
    cursor: pointer;
    font-size: 20px;
}

.profile-dropdown {
    position: relative;
}

.profile-dropdown .dropdown-menu {
    right: 0;
    left: auto;
}

.profile-dropdown .dropdown-toggle::after {
    display: none;
}

.main {
    flex-grow: 1;
    margin-top: 60px;
    margin-left: 280px;
    padding: 20px;
    transition: margin-left 0.3s ease;
}

.main.collapsed {
    margin-left: 0;
}

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: #fff;
    border-top: 1px solid #ccc;
    display: none;
    justify-content: space-around;
    align-items: center;
    z-index: 120;
}

.bottom-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.95rem;
    color: #333;
    cursor: pointer;
}

.bottom-drawer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #fff;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    padding: 20px;
    z-index: 200;
    transform: translateY(100%);
    transition: transform 0.4s ease-in-out;
    height: 100%;
}

.bottom-drawer.active {
    transform: translateY(0);
}

@media (max-width: 767px) {
    .header-left h3 {
        display: flex;
    }

    .sidebar {
        transform: translateX(-100%);
        width: 260px;
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .sidebar-close {
        display: block;
    }

    .header {
        width: 100%;
        margin-left: 0;
    }

    .main {
        margin-left: 0;
    }

    .dropdowns {
        display: none;
    }

    .bottom-nav {
        display: flex;
    }
}
