/* Custom SweetAlert2 Styles for AkadSuci */
/* Match the website's color scheme and design language */

.swal2-container {
    z-index: 2001 !important; /* Higher than delete account modal (z-index: 2000) */
}

.swal2-popup {
    border-radius: 15px;
    font-family: var(--font-family-primary), 'Plus Jakarta Sans', sans-serif;
    box-shadow: var(--shadow-medium);
    border: 1px solid var(--border-color);
    z-index: 2001; /* Higher than delete account modal (z-index: 2000) */
}

.swal2-title {
    color: var(--heading-color);
    font-weight: 600;
    font-size: 1.5rem;
}

.swal2-content {
    color: var(--foreground);
    font-size: 1rem;
    line-height: 1.6;
}

/* Success Alert */
.swal2-icon.swal2-success {
    border-color: var(--status-success);
    color: var(--status-success);
}

.swal2-icon.swal2-success .swal2-success-ring {
    border: 0.25em solid rgba(138, 154, 91, 0.3);
}

.swal2-icon.swal2-success [class^='swal2-success-line'] {
    background-color: var(--status-success);
}

.swal2-success-button,
.swal2-styled.swal2-confirm {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 250px;
    border: none;
    box-shadow: var(--shadow-light);
    font-weight: 600;
    padding: 12px 24px;
    font-size: 16px;
    transition: var(--transition);
}

.swal2-success-button:hover,
.swal2-styled.swal2-confirm:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

.swal2-success-button:active,
.swal2-styled.swal2-confirm:active {
    transform: translateY(-1px);
}

/* Error Alert */
.swal2-icon.swal2-error {
    border-color: var(--status-danger);
    color: var(--status-danger);
}

.swal2-icon.swal2-error [class^='swal2-x-mark-line'] {
    background-color: var(--status-danger);
}

.swal2-error-button,
.swal2-styled.swal2-cancel {
    background: linear-gradient(135deg, var(--secondary-shade-1), var(--secondary));
    border-radius: 250px;
    border: none;
    box-shadow: var(--shadow-light);
    font-weight: 600;
    padding: 12px 24px;
    font-size: 16px;
    transition: var(--transition);
    color: white;
}

.swal2-error-button:hover,
.swal2-styled.swal2-cancel:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

.swal2-error-button:active,
.swal2-styled.swal2-cancel:active {
    transform: translateY(-1px);
}

/* Warning Alert */
.swal2-icon.swal2-warning {
    border-color: var(--status-warning);
    color: var(--status-warning);
}

/* Info Alert */
.swal2-icon.swal2-info {
    border-color: var(--status-info);
    color: var(--status-info);
}

/* Toast notifications */
.swal2-toast {
    border-radius: 12px;
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-color);
}

.swal2-toast .swal2-title {
    font-size: 1rem;
    font-weight: 500;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .swal2-popup {
        width: 90%;
        max-width: 350px;
    }
    
    .swal2-title {
        font-size: 1.25rem;
    }
    
    .swal2-content {
        font-size: 0.9rem;
    }
}