body {
    margin: 0;
    padding: 0;
    background-color: #212121;
    height: 100vh; /* full màn hình */

    display: grid;
    grid-template-rows: 80px 1fr;      

    @media screen and (max-width: 600px) {
        grid-template-rows: 80px 1fr 60px;      
        grid-template-areas:
        "header"
        "main"
        "mobile-nav";
    }

    @media screen and (min-width: 600px) {
        grid-template-columns: 250px 1fr;    
        grid-template-areas:
        "sidebar header"
        "sidebar main";
    }
}

.header {
    background-color: #212121;    
    box-shadow: 0 1px 0 0 rgba(0, 0, 0, 0.5);

    grid-area: header;
    padding: 0 25px;

    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;

    .users img {
        width: 50px;
        height: 50px;
        border-radius: 100%;
    }
}

.sidebar {
    grid-area: sidebar;
    padding: 20px;
    box-shadow: 0 5px 8px 0 rgba(0, 0, 0, 0.5);

    display: flex;
    flex-direction: column;

    .logo {
        width: 100%;
        text-align: center;
        img {
            height: 50px;
            width: 125px;
        }
    } 

    .sidebar-menu {
        color: white;
        margin-top: 20px;
        
        .menu {
            list-style-type: none;
            padding: 0;
            font-size: 16px;
    
            .menu-title {
                text-transform: uppercase;
                font-weight: bold;
                margin: 20px 0px;
                color: #04a5e5;
                border-bottom: 1px solid #04a5e5;
            }
    
            .menu-item {
                padding: 0px 0px 20px 15px;
                font-size: 14px;
                a {
                    display: flex;
                    align-items: center;
                    gap: 10px;
                    color: white;
                    text-decoration: none;
                }
            }
        }
    
    }

}

.main {
    grid-area: main;
    padding: 20px;
    overflow-y: auto; /* Cho phép cuộn dọc nếu nội dung vượt quá chiều cao */
}

/* Ẩn mặc định trên desktop */
.mobile-nav {
    grid-area: mobile-nav;
    display: none;
}

/* Hiển thị khi màn hình nhỏ */
@media (max-width: 768px) {
    .mobile-nav {
        display: flex;
        justify-content: space-around;
        align-items: center;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 60px;
        background-color: #212121;
        box-shadow: 0 -4px 8px rgba(37, 37, 37, 1);
        z-index: 1000;
        padding: 6px 0;
    }

    .mobile-nav-item {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        color: #555;
        font-size: 13px;
        cursor: pointer;
        transition: all 0.2s ease-in-out;
        text-decoration: none;
    }

    .mobile-nav-item i {
        display: block;
        font-size: 18px;
        margin-bottom: 2px;
    }

    .mobile-nav-item.active,
    .mobile-nav-item:hover {
        color: #007bff;
    }

    .mobile-nav-item.active i {
        transform: scale(1.15);
    }
}

.category-item {
    display: block;
    padding: 10px 15px;
    margin-bottom: 10px;
    background-color: #1a1a1a;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;

    a {
        color: white;
        text-decoration: none;
    }
    
    &:hover {
        background-color: #04a5e5;
        color: white;
    }
}