

.open-btn {
    padding: 12px 24px;
    background-color: #a62626;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.bottom-sheet {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    display: none;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sheet-content {
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    background-color: white;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    padding: 16px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    max-height: 80vh;


    height: auto;
    overflow-y: hidden; /* تغییر از auto به hidden */
}

.sheet-content.expanded {
    overflow-y: auto; /* وقتی expanded است اسکرول فعال شود */
}
.drag-handle {
    width: 40px;
    height: 4px;
    background-color: #ddd;
    border-radius: 2px;
    margin: 0 auto 16px;
    cursor: grab;
}

.sheet-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sheet-item {
    padding: 16px;
    background-color: #f5f5f5;
    border-radius: 8px;
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s ease;
}

/* کلاس‌های فعال */
.bottom-sheet.active {
    display: block;
}

.bottom-sheet.active .overlay {
    opacity: 1;
}

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

.bottom-sheet.active .sheet-item {
    transform: translateX(0);
    opacity: 1;
}

