/**
 * SweetAlert2 Custom Styling
 * Matches global design system
 */

/* Main popup container */
.swal2-popup {
    font-family: 'Poppins', sans-serif;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    padding: 30px;
}

/* Title styling */
.swal2-title {
    font-size: 24px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 10px;
}

/* HTML content */
.swal2-html-container {
    font-size: 14px;
    line-height: 1.6;
    color: #64748b;
    margin: 15px 0;
}

/* Icon styling */
.swal2-icon {
    width: 60px;
    height: 60px;
}

.swal2-icon.swal2-success {
    border-color: #10b981;
    background-color: #ecfdf5;
}

.swal2-icon.swal2-success [class*='swal2-success-circular-line'] {
    background-color: #ecfdf5;
}

.swal2-icon.swal2-success.swal2-icon-show .swal2-success-line-tip {
    background-color: #10b981;
}

.swal2-icon.swal2-success.swal2-icon-show .swal2-success-line-long {
    background-color: #10b981;
}

.swal2-icon.swal2-error {
    border-color: #ef4444;
    background-color: #fef2f2;
}

.swal2-icon.swal2-error [class*='swal2-x-mark'] {
    color: #ef4444;
}

.swal2-icon.swal2-warning {
    border-color: #f59e0b;
    background-color: #fffbeb;
}

.swal2-icon.swal2-warning [class*='swal2-success-circular-line'] {
    background-color: #fffbeb;
}

.swal2-icon.swal2-warning .swal2-warning-body {
    background-color: #fffbeb;
}

.swal2-icon.swal2-info {
    border-color: #1176ca;
    background-color: #f0f9ff;
}

.swal2-icon.swal2-info .swal2-info-body {
    background-color: #1176ca;
}

/* Buttons container */
.swal2-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 25px;
}

.swal2-actions button {
    border: none;
    border-radius: 8px;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

/* Confirm button (Primary Blue) */
.swal2-confirm {
    background-color: #1176ca !important;
    color: white;
    min-width: 110px;
}

.swal2-confirm:hover {
    background-color: #0d5aa8 !important;
    box-shadow: 0 4px 12px rgba(17, 118, 202, 0.4);
}

.swal2-confirm:active {
    background-color: #0a4480 !important;
}

/* Cancel button (Gray) */
.swal2-cancel {
    background-color: #6b7280 !important;
    color: white;
    min-width: 110px;
}

.swal2-cancel:hover {
    background-color: #4f5568 !important;
    box-shadow: 0 4px 12px rgba(107, 114, 128, 0.4);
}

.swal2-cancel:active {
    background-color: #374151 !important;
}

/* Deny button (Red) */
.swal2-deny {
    background-color: #ef4444 !important;
    color: white;
    min-width: 110px;
}

.swal2-deny:hover {
    background-color: #dc2626 !important;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.swal2-deny:active {
    background-color: #b91c1c !important;
}

/* Input styling */
.swal2-input,
.swal2-textarea {
    font-family: 'Poppins', sans-serif;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 14px;
    color: #1e293b;
}

.swal2-input:focus,
.swal2-textarea:focus {
    border-color: #1176ca;
    box-shadow: 0 0 0 3px rgba(17, 118, 202, 0.1);
}

/* Loading spinner */
.swal2-loader {
    border-color: rgba(17, 118, 202, 0.3);
    border-top-color: #1176ca;
}

/* Footer */
.swal2-footer {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #e2e8f0;
}

/* Progress bar */
.swal2-progress-steps {
    font-size: 12px;
}

.swal2-progress-steps .swal2-progress-step {
    background-color: #e2e8f0;
    color: #64748b;
}

.swal2-progress-steps .swal2-progress-step.active {
    background-color: #1176ca;
    color: white;
}

.swal2-progress-steps .swal2-progress-step-completed {
    background-color: #10b981;
}

.swal2-progress-steps .swal2-progress-step-completed::after {
    background-color: #10b981;
}

/* Backdrop */
.swal2-backdrop-show {
    background-color: rgba(0, 0, 0, 0.5);
}

/* Close button */
.swal2-close {
    color: #94a3b8;
}

.swal2-close:hover {
    color: #1e293b;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .swal2-popup {
        width: 90% !important;
        padding: 20px;
    }

    .swal2-title {
        font-size: 20px;
    }

    .swal2-html-container {
        font-size: 13px;
    }

    .swal2-actions {
        flex-direction: column;
        gap: 10px;
    }

    .swal2-confirm,
    .swal2-cancel,
    .swal2-deny {
        width: 100%;
        min-width: auto;
    }
}
