/* === Custom Modal Styles === */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    /* Dimmed background */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    /* High z-index */
}

.custom-modal {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    width: 400px;
    max-width: 90%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    background-color: #FF9800;
    /* Orange Theme */
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    font-size: 1.1rem;
}

.modal-title {
    flex-grow: 1;
}

.modal-close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.modal-close-btn:hover {
    color: #ffe0b2;
}

.modal-body {
    padding: 20px;
    font-size: 1rem;
    color: #333;
    line-height: 1.5;
    text-align: center;
    /* Center text */
}

#modal-input {
    width: 100%;
    box-sizing: border-box;
    /* Fix input width overflow */
    padding: 10px;
    margin-top: 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s;
}

#modal-input:focus {
    border-color: #FF9800;
}

.modal-footer {
    padding: 15px 20px;
    background-color: #f9f9f9;
    display: flex;
    justify-content: center;
    /* Center buttons */
    gap: 10px;
}

.modal-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1rem;
    min-width: 80px;
    transition: background 0.2s;
}

.modal-btn.confirm {
    background-color: #FF9800;
    color: white;
}

.modal-btn.confirm:hover {
    background-color: #F57C00;
}

.modal-btn.cancel {
    background-color: #f1f3f5;
    color: #333;
}

.modal-btn.cancel:hover {
    background-color: #e9ecef;
}