/* ==========================================================
    RESET
========================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    height: 100%;

    font-family: Arial, Helvetica, sans-serif;

    background: #0f1115;

    color: #fff;
}

/* ==========================================================
    APP
========================================================== */

.app {
    display: flex;

    flex-direction: column;

    min-height: 100vh;
}

/* ==========================================================
    HEADER
========================================================== */

.app-header {
    display: flex;

    align-items: center;

    gap: 20px;

    padding: 20px 30px;

    background: #171a21;

    border-bottom: 1px solid rgba(255, 255, 255, 0.08);

    position: sticky;

    top: 0;

    z-index: 999;
}

.logo {
    width: 80px;
}

.title {
    font-size: 30px;

    font-weight: bold;

    margin: 0;
}

.subtitle {
    margin-top: 5px;

    color: #999;
}

/* ==========================================================
    BODY
========================================================== */

.app-body {
    display: flex;

    height: calc(100vh - 110px);

    overflow: hidden;
}

/* ==========================================================
    SIDEBAR
========================================================== */

.sidebar {
    width: 260px;

    background: #171a21;

    padding: 20px;

    overflow-y: auto;

    flex-shrink: 0;

    position: sticky;

    top: 0;
}

.sidebar::-webkit-scrollbar {
    width: 7px;
}

.sidebar::-webkit-scrollbar-thumb {
    background: #ffc107;

    border-radius: 10px;
}

/* ==========================================================
    BUTTON
========================================================== */

.category-btn {
    width: 100%;

    margin-bottom: 12px;

    border: none;

    border-radius: 12px;

    background: #232834;

    color: white;

    padding: 14px;

    text-align: left;

    cursor: pointer;

    transition: 0.25s;

    font-size: 15px;
}

.category-btn:hover {
    background: #ffc107;

    color: black;
}

.category-btn.active {
    background: #ffc107;

    color: black;

    transform: translateX(5px);

    font-weight: bold;
}

/* ==========================================================
    CONTENT
========================================================== */

.menu-content {
    flex: 1;

    overflow-y: auto;

    height: 100%;

    padding: 20px;
}

.menu-content::-webkit-scrollbar {
    width: 8px;
}

.menu-content::-webkit-scrollbar-thumb {
    background: #ffc107;

    border-radius: 10px;
}

/* ==========================================================
    IMAGE
========================================================== */

.menu-image {
    width: 100%;

    display: block;

    border-radius: 18px;

    box-shadow: 0 0 30px rgba(0, 0, 0, 0.35);

    transition: 0.3s;

    cursor: pointer;
}

.menu-image:hover {
    transform: scale(1.01);
}

/* ==========================================================
    MODAL
========================================================== */

.modal-content {
    background: black;
}

.modal-body {
    text-align: center;
}

#modalImage {
    width: 100%;
}

/* ==========================================================
    TABLET
========================================================== */

@media (min-width: 992px) and (max-width: 1366px) {
    .sidebar {
        width: 220px;
    }

    .menu-content {
        padding: 20px;
    }
}

/* ==========================================================
    MOBILE
========================================================== */

@media (max-width: 768px) {
    .app {
        min-height: 100vh;
    }

    .app-header {
        padding: 15px;
    }

    .logo {
        width: 60px;
    }

    .title {
        font-size: 22px;
    }

    .subtitle {
        font-size: 13px;
    }

    .app-body {
        display: block;

        overflow: visible;
    }

    /* ===== CATEGORY ===== */

    .sidebar {
        position: sticky;

        top: 95px;

        z-index: 998;

        width: 100%;

        display: grid;

        grid-template-columns: repeat(3, 1fr);

        gap: 10px;

        padding: 15px;

        background: #171a21;

        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .category-btn {
        width: 100%;

        margin: 0;

        text-align: center;

        padding: 12px 8px;

        font-size: 13px;
    }

    .category-btn.active {
        transform: none;

        border: 2px solid #ffc107;
    }

    /* ===== IMAGE ===== */

    .menu-content {
        height: calc(100vh - 220px);

        overflow-y: auto;

        padding: 15px;
    }

    .menu-image {
        width: 100%;

        height: auto;

        border-radius: 14px;

        margin: 0;
    }
}
