/* General Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    display: none; /* Hidden by default */
}

.modal-overlay .modal-content {
    background-color: #2c2c2c; /* Dark gray background */
    color: white;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 450px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    text-align: center;
}

.modal-overlay .modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    border: none;
    background: none;
}

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

.modal-overlay .modal-content h5 {
    margin-bottom: 25px;
    font-size: 1.5rem;
}

.modal-overlay .modal-form-group {
    margin-bottom: 20px;
    text-align: left;
}

.modal-overlay .modal-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

.modal-overlay .modal-form-group input {
    width: 100%;
    padding: 12px;
    background-color: #f0f0f0;
    border: 1px solid #555;
    border-radius: 8px;
    color: #333;
    font-size: 1rem;
}

.modal-overlay .modal-form-group textarea {
    width: 100%;
    padding: 12px;
    background-color: #f0f0f0;
    border: 1px solid #555;
    border-radius: 8px;
    color: #333;
    font-size: 1rem;
    resize: vertical;
}

.modal-overlay .modal-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

.modal-overlay .modal-buttons .btn {
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    width: 150px;
}

.modal-overlay .modal-buttons .btn-primary {
    background-color: #ff8c00; /* Orange */
    color: white;
}

.modal-overlay .modal-buttons .btn-danger {
    background-color: #dc3545; /* Red */
    color: white;
}

.modal-overlay .modal-message {
    margin-top: 20px;
    font-size: 0.9rem;
}

.modal-overlay .modal-message.success {
    color: #28a745; /* Green */
}

.modal-overlay .modal-message.error {
    color: #dc3545; /* Red */
}
