﻿.modal-backdropcustom {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5); /* Dimmed background */
    z-index: 1000;
    display: flex;
    justify-content: flex-start;
    align-items: stretch;
    overflow: hidden; /* Prevent scrolling within backdrop */
    pointer-events: all; /* Ensure it intercepts clicks */
}

.modal-left-panel {
    border-bottom-right-radius: 20px;
    border-top-right-radius: 20px;
    margin-top: 1rem;
    background-color: #fff;
    width: 300px;
    height: 91vh; /* Full height of viewport */
    padding: 1rem;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: slide-in-left 0.3s ease forwards;
    overflow-y: auto; /* Enables vertical scroll */
    overscroll-behavior: contain; /* Prevents scroll chaining */
}

    .modal-left-panel::-webkit-scrollbar {
        width: 8px;
    }

    .modal-left-panel::-webkit-scrollbar-thumb {
        background: #ccc;
        border-radius: 4px;
    }

    .modal-left-panel::-webkit-scrollbar-track {
        background: transparent;
    }

@keyframes slide-in-left {
    from {
        transform: translateX(-100%);
    }

    to {
        transform: translateX(0);
    }
}

.close-button {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.5rem;
    background: transparent;
    border: none;
    cursor: pointer;
}
.arrow-button {
    position: absolute;
    top: 10px;
    right: 10px;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #333;
    z-index: 10;
    transition: color 0.2s ease;
}

    .arrow-button:hover {
        color: #000;
    }
