/* Overlay background */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6); /* dark transparent bg */
    display: none; /* hidden by default */
    align-items: center; /* center vertically */
    justify-content: center; /* center horizontally */
    z-index: 9999; /* on top of everything */
}

/* Modal box */
.modal {
    background: #fff;
    border-radius: 12px;
    max-width: 450px;
    width: 90%;
    padding: 20px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
    animation: fadeIn 0.25s ease;
    position: relative;
}

/* Header */
.modal-header {
    text-align: center;
    margin-bottom: 15px;
}
.modal-icon {
    font-size: 40px;
    margin-bottom: 10px;
}
.modal-title {
    font-size: 20px;
    font-weight: bold;
}
.modal-subtitle {
    color: #555;
    font-size: 14px;
}

/* Body */
.modal-body {
    text-align: center;
}
.modal-message {
    font-size: 16px;
    margin-bottom: 10px;
}
.modal-description {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

/* Actions */
.modal-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}
.modal-actions .btn {
    padding: 10px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.2s;
}

/* Close button */
.modal-close {
    position: absolute;
    right: 12px;
    top: 12px;
    background: transparent;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: #555;
}
.modal-close:hover {
    color: #000;
}

/* Animation */
@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}
