.modal {
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease-in-out;
    overflow: auto;
    justify-content: center;
    align-items: center;
    left: 0;
    top: 0;
}

.modal.is-active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: #fefefe;
    transform: translateY(-20px);
    opacity: 0;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2), 0 6px 20px 0 rgba(0,0,0,0.19);
}

.modal.is-active .modal-content {
    transform: translateY(0);
    opacity: 1;
}

/* Custom scrollbar for modal */
.modal-scroll::-webkit-scrollbar {
    width: 8px;
}

.modal-scroll::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.modal-scroll::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

.modal-scroll::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/*.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 80%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
    justify-content: center;
    align-items: center;
}

.modal.is-active {
    display: flex;
}

.modal-content {
    background-color: #fefefe;
    margin: 20px;
    padding: 10px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2), 0 6px 20px 0 rgba(0,0,0,0.19);
}*/

.modal-close-button {
    float: right;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
}

.modal-close-button:hover,
.modal-close-button:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

/* Optional: For preventing body scroll when modal is open */
body.modal-open {
    overflow: hidden;
}