/**
 * KKKAM Standardized Dialog Box Styles
 * Custom SweetAlert2 Theme for Kelab Kebajikan Kakitangan Ain Medicare
 */

/* Backdrop with blur */
.swal2-container.kk-swal-container {
    background: rgba(15, 23, 42, 0.65) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    z-index: 99999 !important;
}

/* Modal Popup Window */
.swal2-popup.kk-swal-popup {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    border-radius: 22px !important;
    padding: 2rem 1.75rem 1.75rem 1.75rem !important;
    background: #ffffff !important;
    border: 1px solid rgba(226, 232, 240, 0.9) !important;
    box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.35), 0 10px 25px -5px rgba(15, 23, 42, 0.1) !important;
    max-width: 480px !important;
    width: 92% !important;
}

/* Modal Title */
.swal2-title.kk-swal-title {
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-weight: 700 !important;
    font-size: 1.35rem !important;
    color: #0f172a !important;
    letter-spacing: -0.015em !important;
    padding: 0.75rem 0 0.35rem 0 !important;
}

/* Modal Body / Text */
.swal2-html-container.kk-swal-html {
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-size: 0.95rem !important;
    font-weight: 500 !important;
    color: #475569 !important;
    line-height: 1.6 !important;
    margin: 0.5rem 0 1.25rem 0 !important;
}

/* Icons */
.swal2-icon {
    margin: 0.5rem auto 1rem auto !important;
    transform: scale(0.95);
}
.swal2-icon.swal2-warning {
    border-color: #f59e0b !important;
    color: #d97706 !important;
}
.swal2-icon.swal2-success {
    border-color: #10b981 !important;
    color: #10b981 !important;
}
.swal2-icon.swal2-error {
    border-color: #ef4444 !important;
    color: #ef4444 !important;
}
.swal2-icon.swal2-info {
    border-color: #3b82f6 !important;
    color: #3b82f6 !important;
}

/* Actions Container */
.swal2-actions.kk-swal-actions {
    width: 100% !important;
    display: flex !important;
    gap: 0.75rem !important;
    justify-content: center !important;
    margin-top: 1rem !important;
    padding: 0 !important;
}

/* Shared Button Styles */
.kk-swal-btn {
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    border-radius: 12px !important;
    padding: 0.7rem 1.6rem !important;
    cursor: pointer !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: none !important;
    outline: none !important;
}
.kk-swal-btn:hover {
    transform: translateY(-2px) !important;
}
.kk-swal-btn:active {
    transform: translateY(0) !important;
}

/* Confirm Button - Primary Blue */
.kk-swal-btn-primary {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35) !important;
}
.kk-swal-btn-primary:hover {
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.45) !important;
}

/* Confirm Button - Danger Red (for delete / reset actions) */
.kk-swal-btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.35) !important;
}
.kk-swal-btn-danger:hover {
    box-shadow: 0 6px 18px rgba(239, 68, 68, 0.45) !important;
}

/* Confirm Button - Success Green */
.kk-swal-btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35) !important;
}
.kk-swal-btn-success:hover {
    box-shadow: 0 6px 18px rgba(16, 185, 129, 0.45) !important;
}

/* Cancel Button */
.kk-swal-btn-cancel {
    background: #f1f5f9 !important;
    color: #475569 !important;
    border: 1px solid #cbd5e1 !important;
}
.kk-swal-btn-cancel:hover {
    background: #e2e8f0 !important;
    color: #1e293b !important;
}

/* Toast Notifications */
.swal2-popup.swal2-toast.kk-swal-toast {
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    border-radius: 14px !important;
    padding: 0.75rem 1.25rem !important;
    background: #ffffff !important;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.15) !important;
    border: 1px solid #e2e8f0 !important;
}
