/* ===== SweetAlert2 Global Styles ===== */

/* --- Toast --- */
.swal2-popup.swal2-toast {
    min-width: 320px;
    padding: 22px 20px !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15) !important;
    border-left: 4px solid #ff159b !important;
    background: #fff !important;
}
.swal2-popup.swal2-toast .swal2-title {
    font-size: 14.5px;
    font-weight: 600;
    color: #1f2937 !important;
    padding: 6px 0;
    margin: 0;
    line-height: 1.4;
}
.swal2-popup.swal2-toast .swal2-icon {
    width: 28px !important;
    height: 28px !important;
    margin: 0 10px 0 0 !important;
    border-width: 2px !important;
}
.swal2-popup.swal2-toast .swal2-icon .swal2-icon-content { font-size: 16px; }
.swal2-popup.swal2-toast .swal2-icon.swal2-warning { border-color: #ff159b !important; color: #ff159b !important; }
.swal2-popup.swal2-toast .swal2-icon.swal2-error { border-color: #ef4444 !important; color: #ef4444 !important; }
.swal2-popup.swal2-toast .swal2-icon.swal2-success { border-color: #22c55e !important; color: #22c55e !important; }
.swal2-popup.swal2-toast .swal2-icon.swal2-success [class^=swal2-success-line] { background-color: #22c55e !important; }
.swal2-popup.swal2-toast .swal2-icon.swal2-success .swal2-success-ring { border-color: #22c55e !important; }
.swal2-popup.swal2-toast .swal2-timer-progress-bar { background: #ff159b !important; }

/* --- Modal --- */
.swal2-popup:not(.swal2-toast) {
    border-radius: 16px !important;
    padding: 28px 24px !important;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2) !important;
    font-family: system-ui, -apple-system, sans-serif;
}
.swal2-popup:not(.swal2-toast) .swal2-title {
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
    padding: 0 0 4px;
}
.swal2-popup:not(.swal2-toast) .swal2-html-container,
.swal2-popup:not(.swal2-toast) #swal2-html-container {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.5;
    margin-top: 8px;
}
.swal2-popup:not(.swal2-toast) .swal2-icon {
    margin-top: 8px;
    margin-bottom: 12px;
}
.swal2-popup:not(.swal2-toast) .swal2-icon.swal2-warning {
    border-color: #ff159b !important;
    color: #ff159b !important;
}
.swal2-popup:not(.swal2-toast) .swal2-icon.swal2-success {
    border-color: #22c55e !important;
    color: #22c55e !important;
}
.swal2-popup:not(.swal2-toast) .swal2-icon.swal2-success [class^=swal2-success-line] {
    background-color: #22c55e !important;
}
.swal2-popup:not(.swal2-toast) .swal2-icon.swal2-success .swal2-success-ring {
    border-color: rgba(34,197,94,0.3) !important;
}
.swal2-popup:not(.swal2-toast) .swal2-icon.swal2-error {
    border-color: #ef4444 !important;
    color: #ef4444 !important;
}
.swal2-popup:not(.swal2-toast) .swal2-icon.swal2-error [class^=swal2-x-mark-line] {
    background-color: #ef4444 !important;
}
.swal2-popup:not(.swal2-toast) .swal2-icon.swal2-info {
    border-color: #3b82f6 !important;
    color: #3b82f6 !important;
}
/* Butonlar */
.swal2-popup:not(.swal2-toast) .swal2-actions {
    margin-top: 20px;
    gap: 10px;
}
.swal2-popup:not(.swal2-toast) .swal2-confirm {
    background: #ff159b !important;
    border: none !important;
    border-radius: 10px !important;
    padding: 10px 28px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 12px rgba(255,21,155,0.3) !important;
    transition: all 0.2s !important;
}
.swal2-popup:not(.swal2-toast) .swal2-confirm:hover {
    background: #e0138a !important;
    box-shadow: 0 6px 16px rgba(255,21,155,0.4) !important;
    transform: translateY(-1px);
}
.swal2-popup:not(.swal2-toast) .swal2-cancel {
    background: #f3f4f6 !important;
    color: #4b5563 !important;
    border: none !important;
    border-radius: 10px !important;
    padding: 10px 28px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
}
.swal2-popup:not(.swal2-toast) .swal2-cancel:hover {
    background: #e5e7eb !important;
}
.swal2-popup:not(.swal2-toast) .swal2-deny {
    border-radius: 10px !important;
    padding: 10px 28px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
}
/* Danger buton (silme/onay) */
.swal2-popup:not(.swal2-toast) .swal2-confirm.swal2-confirm-danger {
    background: #ef4444 !important;
    box-shadow: 0 4px 12px rgba(239,68,68,0.3) !important;
}
.swal2-popup:not(.swal2-toast) .swal2-confirm.swal2-confirm-danger:hover {
    background: #dc2626 !important;
    box-shadow: 0 6px 16px rgba(239,68,68,0.4) !important;
}
/* Input */
.swal2-popup:not(.swal2-toast) .swal2-input,
.swal2-popup:not(.swal2-toast) .swal2-textarea {
    border-radius: 10px !important;
    border: 1.5px solid #e5e7eb !important;
    font-size: 14px;
    padding: 10px 14px;
}
.swal2-popup:not(.swal2-toast) .swal2-input:focus,
.swal2-popup:not(.swal2-toast) .swal2-textarea:focus {
    border-color: #ff159b !important;
    box-shadow: 0 0 0 3px rgba(255,21,155,0.1) !important;
}
/* Overlay - sadece modal (toast hariç) */
.swal2-container.swal2-backdrop-show:not(:has(.swal2-toast)) {
    background: rgba(0,0,0,0.5) !important;
    backdrop-filter: blur(4px);
}
/* Toast overlay tamamen şeffaf */
body.swal2-toast-shown .swal2-container {
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    pointer-events: none !important;
}
body.swal2-toast-shown .swal2-container .swal2-popup {
    pointer-events: auto !important;
}
