/* Header */
.menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background-color: #ffffff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.menu-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

/* Toggle */
.toggle-wrapper {
    position: relative;
    width: 56px;
    height: 28px;
}

.toggle-checkbox {
    display: none;
}

.toggle-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #e0e0e0;
    border-radius: 20px;
    padding: 4px 6px;
    position: relative;
    height: 100%;
    width: 100%;
    box-sizing: border-box;
    cursor: pointer;
}

.toggle-icon {
    font-size: 13px;
    color: #999;
    z-index: 2;
    transition: color 0.3s ease;
}

.toggle-slider {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 24px;
    height: 24px;
    background-color: #00aa5b;
    border-radius: 50%;
    transition: left 0.3s ease;
    z-index: 1;
}

.toggle-checkbox:checked + .toggle-label .toggle-slider {
    left: 30px;
}

.toggle-checkbox:checked + .toggle-label .list-icon {
    color: #fff;
}

.toggle-checkbox:checked + .toggle-label .grid-icon {
    color: #999;
}

.toggle-checkbox:not(:checked) + .toggle-label .grid-icon {
    color: #fff;
}

.toggle-checkbox:not(:checked) + .toggle-label .list-icon {
    color: #999;
}

/* Menu Layout */
.gojek-menu {
    display: grid;
    gap: 15px;
    padding: 20px;
    background-color: #fff;
}

.grid-view {
    grid-template-columns: repeat(3, 1fr);
}

@media (min-width: 600px) {
    .grid-view {
        grid-template-columns: repeat(6, 1fr);
    }
}

@media (min-width: 768px) {
    .grid-view {
        grid-template-columns: repeat(8, 1fr);
    }
}

.list-view {
    grid-template-columns: 1fr;
}

.menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 10px;
    transition: all 0.3s ease;
    box-sizing: border-box;
    background-color: #fafafa;
    border-radius: 10px;
}

.list-view .menu-item {
    flex-direction: row;
    justify-content: flex-start;
    gap: 12px;
    padding: 12px;
}

.menu-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    font-size: 32px; /* diperbesar agar mirip seperti Gojek */
}

.menu-icon img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.menu-label {
    margin-top: 6px;
    font-size: 12px;
    font-weight: 500;
    color: #333;
    line-height: 1; 
}

.list-view .menu-label {
    margin-top: 0;
    font-size: 16px;
    text-align: left;
}

.menu-description {
    display: none;
    font-size: 10px;
    color: #666;
    line-height: 1; 
}

.list-view .menu-description {
    display: block;
}