.modal {
    display: none;
    position: absolute; /* Positioning relative to the button */
    left: 200px;
    top: 200px;
    z-index: 110;
    background-color: rgba(0, 0, 0, 0.5);
    width: 300px;
}

.modal ul {
    list-style-type: none;
}

/* Modal Content */
.modal-content {
    background-color: white;
    padding: 20px;
    border: 1px solid #888;
}

/* Close Button */
.close-modal { position: relative;  font-size: 32px;  color: #aaa; cursor: pointer; width: 100%; display: flex;  justify-content: end; }

.close-modal:hover,
.close-modal:focus {
    color: black;
}


/* Basic styling for the modal */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1000; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4); /* Background overlay */
    padding-top: 100px; /* Center the modal */
    box-sizing: border-box;

}

.show {
    display: flex; /* Show the modal with flexbox */
    justify-content: center; /* Horizontally center */
    align-items: center; /* Vertically center */
}

.modal-content {
    position: relative;
    background-color: white;
    margin: 5% auto;
    padding: 24px 32px 40px 32px;
    border-radius: 8px;
    /*width: 500px;
    height: 300px; */
    max-width: 500px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.modal-title {
    margin: 10px 0 10px 0;
    font-size: 20px;
}

.modal-description {
    margin: 0 0 20px 0;
    font-size: 14px;
    color: #555;
}

.modal-actions {
    display: flex;
    justify-content: center;
    gap: 40px;
}

.modal-content-large {
    display: flex;
    flex-direction: column;
    background-color: white;
    margin: 5% auto;
    padding: 20px;
    border-radius: 5px;
    width: 60vw;
    height: 60vh;
    text-align: center;
    max-height: 60vh;       /* or any height constraint */
    overflow-y: auto;
}

/* Modal input field */
#newPlaceModal #folderName {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 2px solid #4CAF50;
    border-radius: 5px;
    font-size: 16px;
    text-align: center;
}

/* Modal buttons */
#newPlaceModal .modal-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

#newPlaceModal .cancel-btn {
    background-color: var(--warning-red);
    color: white;
}

#newPlaceModal .create-btn {
    background-color: var(--ok-green);
    color: var(--text-on-ok-green);
}

/* Hover effects */
#newPlaceModal button:hover {
    opacity: 0.8;
}

#newPlaceTitle {
    max-width: 750px;
    min-width: 400px;
    padding: 4px 8px;
    margin: 24px 0 0 0;
}

#newPlaceModal button {
    padding: 12px 32px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}
#cancelBtn {
    border: 1px solid var(--warning-red) !important;
    background:white;
    color: var(--warning-red);
    margin: 0;
}

#confirmBtn {
    background: var(--warning-red);
    border: none;
}
#confirmCancelBtn {
    margin: 0;
    font-weight: 300;
}

.modal-options {
    display: flex;
    flex-direction: column;   /* stack vertically */
    gap: 1rem;                /* equal space between buttons */
    padding: 0;
    margin: 0;
    list-style: none;
}

.modal-options li {
    flex: 1;                  /* make all buttons equal width */
    padding: 12px;
    text-align: center;
    background: #f0f0f0;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.modal-options li:hover {
    background: #e0e0e0;
}

.modal-options .icon {
    margin-right: 8px;
}