/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000; /* Ensure it's on top */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Modal Content */
.modal-content {
    background-color: #2c2c2c; /* Dark background for the modal */
    color: #e0e0e0; /* Light text color */
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
    width: 90%;
    max-width: 500px;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

/* Modal Header */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #444; /* Darker border */
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.modal-title {
    font-size: 1.5em;
    color: #ff6b35; /* Accent color for title */
    margin: 0;
}

.modal-close-btn {
    background: none;
    border: none;
    font-size: 1.8em;
    color: #aaa;
    cursor: pointer;
    padding: 0 5px;
    transition: color 0.2s ease;
}

.modal-close-btn:hover {
    color: #fff;
}

/* Modal Body */
.modal-body {
    margin-bottom: 20px;
    font-size: 1.1em;
    line-height: 1.6;
}

.modal-body p {
    margin: 0;
}

/* Modal Footer */
.modal-footer {
    text-align: right;
    padding-top: 15px;
    border-top: 1px solid #444; /* Darker border */
}

.modal-ok-btn {
    background-color: #ff6b35; /* Accent color for button */
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.modal-ok-btn:hover {
    background-color: #f75a20; /* Slightly darker on hover */
}

.modal-cancel-btn, .modal-confirm-btn {
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
    margin-left: 10px;
}

.modal-cancel-btn {
    background-color: #555; /* Dark gray for cancel */
    color: white;
    border: none;
}

.modal-cancel-btn:hover {
    background-color: #444;
}

.modal-confirm-btn {
    background-color: #e74c3c; /* Red for confirm/delete actions */
    color: white;
    border: none;
}

.modal-confirm-btn:hover {
    background-color: #c0392b;
}


/* Responsive adjustments */
@media (max-width: 600px) {
    .modal-content {
        width: 95%;
        padding: 20px;
    }

    .modal-title {
        font-size: 1.3em;
    }

    .modal-body {
        font-size: 1em;
    }

    .modal-ok-btn, .modal-cancel-btn, .modal-confirm-btn {
        padding: 10px 15px;
        font-size: 0.9em;
    }
}
