/* Modal overlay */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    animation: fadeIn 0.3s ease-in-out;
}

.modal-overlay.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Modal container */
.modal-container {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    max-width: 500px;
    width: 90%;
    animation: slideIn 0.3s ease-in-out;
    position: relative;
}

/* Modal header */
.modal-header {
    padding: 24px 24px 16px 24px;
    border-bottom: 1px solid #e5e7eb;
    position: relative;
}

.modal-title {
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
    padding-right: 32px;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    color: #6b7280;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background-color: #f3f4f6;
    color: #1f2937;
}

/* Modal body */
.modal-body {
    padding: 24px;
}

.modal-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #d1fae5;
    border-radius: 50%;
}

.modal-icon i {
    font-size: 24px;
    color: #059669;
}

.modal-icon-warning {
    background-color: #fef3c7;
}

.modal-icon-warning i {
    color: #d97706;
}

.modal-message {
    text-align: center;
    font-size: 16px;
    color: #4b5563;
    line-height: 1.5;
}

/* Modal footer */
.modal-footer {
    padding: 16px 24px 24px 24px;
    display: flex;
    justify-content: center;
    gap: 12px;
}

.modal-btn {
    padding: 12px 32px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 120px;
}

.modal-btn-primary {
    background-color: #2563eb;
    color: white;
}

.modal-btn-primary:hover {
    background-color: #1d4ed8;
}

.modal-btn-primary:active {
    background-color: #1e40af;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Prevent body scroll when modal is open */
body.modal-open {
    overflow: hidden;
}
