/* Backdrop untuk bottom sheet */
.bottom-sheet-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 999;
}

.bottom-sheet-backdrop.show {
    opacity: 1;
    visibility: visible;
}

.wrapper-slot {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
}

.bottom-sheet {
    width: 100%;
    max-width: 450px;
    margin-inline: auto;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    border-radius: 15px 15px 0 0;
    height: 100%;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    pointer-events: auto;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    will-change: transform;
}

.bottom-sheet.show {
    transform: translateY(0);
}

.bottom-sheet:not(.show) {
    visibility: hidden;
    opacity: 0;
    transition: transform 0.3s ease, visibility 0.3s ease, opacity 0.3s ease;
}

.bottom-sheet.show {
    visibility: visible;
    opacity: 1;
}

.drag-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    touch-action: none;
    min-height: 0;
}

.drag-handle {
    width: 40px;
    height: 5px;
    background: #ccc;
    border-radius: 3px;
    margin: 10px auto;
    cursor: grab;
}

.drag-handle:active {
    cursor: grabbing;
}

.sheet-content {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    background: transparent;

    /* Smooth scrolling */
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;

    /* Scrollbar styling */
    scrollbar-width: thin;
    scrollbar-color: #dfdfdf transparent;
}

/* Webkit (Chrome, Safari, newer Edge) */
.sheet-content::-webkit-scrollbar {
    width: 4px;
    /* lebih tipis untuk mobile */
}

.sheet-content::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    transition: background 0.3s;
}

.sheet-content::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.4);
}

.sheet-content::-webkit-scrollbar-track {
    background: transparent;
}


@media (max-width: 450px) {
    .bottom-sheet {
        border-radius: 15px 15px 0 0;
    }
}