* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f4f4f4;
}

/* HEADER */
.header {
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 12px;

    background: white;
    border-bottom: 1px solid #ddd;
}

.btn {
    font-size: 18px;
    background: none;
    border: none;
    cursor: pointer;
}

/* USER MENU */
.header-right {
    position: relative;
}

.user-menu {
    position: absolute;
    right: 0;
    top: 42px;

    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;

    width: 180px;

    display: none;
    flex-direction: column;
}

.user-menu a {
    padding: 10px;
    text-decoration: none;
    color: black;
}

.user-menu a:hover {
    background: #f0f0f0;
}

.user-menu .divider {
    height: 1px;
    background: #ddd;
}

/* APP LAYOUT */
.app {
    display: flex;
    height: calc(100vh - 56px);
}

/* SIDEBAR */
.sidebar {
    width: 280px;
    background: white;
    border-right: 1px solid #ddd;

    display: flex;
    flex-direction: column;

    transition: width 0.25s ease;
    overflow: hidden;
}

/* COLLAPSED DESKTOP */
.app.sidebar-collapsed .sidebar {
    width: 0;
}

/* CONTENT */
.content {
    flex: 1;
    padding: 20px;
}

/* OVERLAY */
#overlay {
    display: none;
}

/* MOBILE */
@media (max-width: 992px) {

    .sidebar {
        position: fixed;
        top: 56px;
        left: 0;

        height: calc(100vh - 56px);
        width: 280px;

        transform: translateX(-100%);
        transition: transform 0.25s ease;

        z-index: 1000;
    }

    .sidebar.open {
        transform: translateX(0);
    }

    #overlay {
        position: fixed;
        inset: 56px 0 0 0;
        background: rgba(0,0,0,0.4);
    }

    #overlay.active {
        display: block;
    }
}