/* Custom SweetAlert2 Modern Theme */
/* Matching Alumni Sinnarin Project Design */

/* Popup Container */
.swal-modern-popup {
    border-radius: 1rem !important;
    padding: 2rem !important;
    box-shadow: 0 20px 60px -10px rgba(0, 0, 0, 0.3) !important;
    font-family: 'Prompt', sans-serif !important;
}

/* Title */
.swal-modern-title {
    font-size: 1.75rem !important;
    font-weight: 700 !important;
    color: #1f2937 !important;
    margin-bottom: 1rem !important;
    padding: 0 !important;
}

/* Content */
.swal-modern-content {
    font-size: 1rem !important;
    color: #4b5563 !important;
    line-height: 1.6 !important;
    margin: 0 !important;
}

/* Icons */
.swal-modern-icon {
    margin: 1.5rem auto !important;
    border-width: 3px !important;
}

.swal2-icon.swal2-success {
    border-color: #10b981 !important;
}

.swal2-icon.swal2-success [class^='swal2-success-line'] {
    background-color: #10b981 !important;
}

.swal2-icon.swal2-success .swal2-success-ring {
    border-color: rgba(16, 185, 129, 0.3) !important;
}

.swal2-icon.swal2-error {
    border-color: #ef4444 !important;
}

.swal2-icon.swal2-error [class^='swal2-x-mark-line'] {
    background-color: #ef4444 !important;
}

.swal2-icon.swal2-warning {
    border-color: #f59e0b !important;
    color: #f59e0b !important;
}

.swal2-icon.swal2-info {
    border-color: #3b82f6 !important;
    color: #3b82f6 !important;
}

.swal2-icon.swal2-question {
    border-color: #8b5cf6 !important;
    color: #8b5cf6 !important;
}

/* Buttons Container */
.swal-modern-actions {
    gap: 0.75rem !important;
    margin-top: 1.5rem !important;
}

/* Confirm Button */
.swal-modern-confirm {
    padding: 0.75rem 2rem !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    border-radius: 0.75rem !important;
    color: white !important;
    border: none !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.3) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
}

.swal-modern-confirm:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(30, 64, 175, 0.4) !important;
}

.swal-modern-confirm:active {
    transform: translateY(0) !important;
}

/* Cancel Button */
.swal-modern-cancel {
    padding: 0.75rem 2rem !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    border-radius: 0.75rem !important;
    background-color: #6b7280 !important;
    color: white !important;
    border: none !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 12px rgba(107, 114, 128, 0.3) !important;
}

.swal-modern-cancel:hover {
    background-color: #4b5563 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(107, 114, 128, 0.4) !important;
}

/* Override inline styles from SweetAlert2 */
.swal2-actions .swal2-confirm[style] {
    background-color: var(--swal2-confirm-color, #1e40af) !important;
}

.swal2-actions .swal2-cancel[style] {
    background-color: var(--swal2-cancel-color, #6b7280) !important;
}

.swal2-actions .swal2-deny[style] {
    background-color: var(--swal2-deny-color, #ef4444) !important;
}

.swal-modern-cancel:active {
    transform: translateY(0) !important;
}

/* Deny Button */
.swal-modern-deny {
    padding: 0.75rem 2rem !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    border-radius: 0.75rem !important;
    background-color: #ef4444 !important;
    color: white !important;
    border: none !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3) !important;
}

.swal-modern-deny:hover {
    background-color: #dc2626 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4) !important;
}

/* Animations */
.swal-show-animation {
    animation: swalSlideInDown 0.3s ease-out !important;
}

.swal-hide-animation {
    animation: swalSlideOutUp 0.3s ease-in !important;
}

.swal-backdrop-show {
    animation: swalBackdropIn 0.3s ease-out !important;
}

.swal-backdrop-hide {
    animation: swalBackdropOut 0.3s ease-in !important;
}

@keyframes swalSlideInDown {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes swalSlideOutUp {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

@keyframes swalBackdropIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes swalBackdropOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

/* Timer Progress Bar */
.swal2-timer-progress-bar {
    background: linear-gradient(90deg, #1e40af 0%, #3b82f6 100%) !important;
    height: 4px !important;
}

/* Loading Spinner */
.swal2-loader {
    border-color: #1e40af transparent #1e40af transparent !important;
    border-width: 3px !important;
}

/* Toast Notifications */
.swal-toast-modern {
    border-radius: 0.75rem !important;
    padding: 1rem 1.5rem !important;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.3) !important;
    backdrop-filter: blur(10px) !important;
}

.swal-toast-title {
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    color: #1f2937 !important;
}

.swal-toast-icon {
    width: 2rem !important;
    height: 2rem !important;
    margin: 0 !important;
}

/* Input Fields */
.swal2-input,
.swal2-textarea,
.swal2-select {
    border: 2px solid #e5e7eb !important;
    border-radius: 0.5rem !important;
    padding: 0.75rem 1rem !important;
    font-size: 1rem !important;
    font-family: 'Prompt', sans-serif !important;
    transition: all 0.3s ease !important;
}

.swal2-input:focus,
.swal2-textarea:focus,
.swal2-select:focus {
    border-color: #1e40af !important;
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1) !important;
    outline: none !important;
}

/* Validation Message */
.swal2-validation-message {
    background-color: #fef2f2 !important;
    border-left: 4px solid #ef4444 !important;
    color: #991b1b !important;
    border-radius: 0.5rem !important;
    padding: 0.75rem 1rem !important;
    font-size: 0.875rem !important;
}

/* Close Button */
.swal2-close {
    color: #9ca3af !important;
    font-size: 2rem !important;
    transition: all 0.3s ease !important;
}

.swal2-close:hover {
    color: #1f2937 !important;
    transform: rotate(90deg) !important;
}

/* Backdrop */
.swal2-container {
    backdrop-filter: blur(4px) !important;
}

/* Responsive */
@media (max-width: 640px) {
    .swal-modern-popup {
        padding: 1.5rem !important;
        margin: 1rem !important;
        width: calc(100% - 2rem) !important;
    }
    
    .swal-modern-title {
        font-size: 1.5rem !important;
    }
    
    .swal-modern-confirm,
    .swal-modern-cancel,
    .swal-modern-deny {
        padding: 0.625rem 1.5rem !important;
        font-size: 0.9rem !important;
    }
}

/* Dark Mode Support (Optional) */
@media (prefers-color-scheme: dark) {
    .swal-modern-popup {
        background-color: #1f2937 !important;
    }
    
    .swal-modern-title {
        color: #f9fafb !important;
    }
    
    .swal-modern-content {
        color: #d1d5db !important;
    }
}
