/* ═══════════════════════════════════════════════════
   DGN ELİTE — SweetAlert2 v2 Theme
   ═══════════════════════════════════════════════════ */

/* ─── Backdrop ─── */
.swal2-backdrop-show {
    background: rgba(0,0,0,0.78) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
}
/* Toast container'larda backdrop sıfırla — aksi halde sağ üstte siyah şerit çıkar */
.swal2-container.swal2-top-end.swal2-backdrop-show,
.swal2-container.swal2-top-start.swal2-backdrop-show,
.swal2-container.swal2-bottom-end.swal2-backdrop-show,
.swal2-container.swal2-bottom-start.swal2-backdrop-show,
.swal2-container.swal2-top-center.swal2-backdrop-show,
.swal2-container.swal2-bottom-center.swal2-backdrop-show {
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* ─── Popup ─── */
.swal2-popup {
    background: #0c1018 !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
    border-radius: 22px !important;
    box-shadow:
        0 0 0 1px rgba(255,255,255,0.04),
        0 40px 100px rgba(0,0,0,0.85),
        inset 0 1px 0 rgba(255,255,255,0.07) !important;
    padding: 40px 36px 32px !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
    max-width: 460px !important;
    width: 100% !important;
    position: relative !important;
    overflow: hidden !important;
}

/* Renkli üst şerit — type'a göre JS'den customClass ile eklenir */
.swal2-popup::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important; left: 0 !important; right: 0 !important;
    height: 3px !important;
    border-radius: 22px 22px 0 0 !important;
}
.swal2-popup.dgn-success::before { background: linear-gradient(90deg,#34d399,#059669) !important; }
.swal2-popup.dgn-warning::before { background: linear-gradient(90deg,#fb923c,#ea580c) !important; }
.swal2-popup.dgn-error::before   { background: linear-gradient(90deg,#ef4444,#dc2626) !important; }
.swal2-popup.dgn-info::before    { background: linear-gradient(90deg,#38bdf8,#0ea5e9) !important; }
.swal2-popup.dgn-question::before{ background: linear-gradient(90deg,#a78bfa,#7c3aed) !important; }

/* ─── İkon — kare kutu ─── */
.swal2-icon {
    width: 80px !important;
    height: 80px !important;
    border-radius: 20px !important;
    border: none !important;
    margin: 0 auto 22px !important;
    flex-shrink: 0 !important;
}

/* success */
.swal2-icon.swal2-success {
    background: linear-gradient(135deg, rgba(52,211,153,0.16), rgba(16,185,129,0.06)) !important;
    box-shadow: 0 0 0 1px rgba(52,211,153,0.22), 0 12px 32px rgba(52,211,153,0.18) !important;
}
/* warning */
.swal2-icon.swal2-warning {
    background: linear-gradient(135deg, rgba(251,146,60,0.16), rgba(234,88,12,0.06)) !important;
    box-shadow: 0 0 0 1px rgba(251,146,60,0.22), 0 12px 32px rgba(251,146,60,0.18) !important;
    color: #fb923c !important;
}
/* error */
.swal2-icon.swal2-error {
    background: linear-gradient(135deg, rgba(239,68,68,0.16), rgba(220,38,38,0.06)) !important;
    box-shadow: 0 0 0 1px rgba(239,68,68,0.22), 0 12px 32px rgba(239,68,68,0.18) !important;
    color: #ef4444 !important;
}
/* info */
.swal2-icon.swal2-info {
    background: linear-gradient(135deg, rgba(56,189,248,0.16), rgba(14,165,233,0.06)) !important;
    box-shadow: 0 0 0 1px rgba(56,189,248,0.22), 0 12px 32px rgba(56,189,248,0.18) !important;
    color: #38bdf8 !important;
}
/* question */
.swal2-icon.swal2-question {
    background: linear-gradient(135deg, rgba(167,139,250,0.16), rgba(124,58,237,0.06)) !important;
    box-shadow: 0 0 0 1px rgba(167,139,250,0.22), 0 12px 32px rgba(167,139,250,0.18) !important;
    color: #a78bfa !important;
}

/* Swal varsayılan ring / line animasyonlarını gizle */
.swal2-success-ring,
.swal2-success-circular-line-left,
.swal2-success-circular-line-right,
.swal2-success-fix { display: none !important; }
.swal2-icon.swal2-success [class^=swal2-success-line] {
    display: none !important;
}

/* iconHtml içeriği (Font Awesome) */
.swal2-icon .swal2-icon-content {
    font-size: 2.4em !important;
    line-height: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
    color: inherit !important;
}
.swal2-icon .swal2-icon-content i {
    font-size: inherit !important;
    width: auto !important;
    height: auto !important;
    line-height: 1 !important;
}

/* success iconHtml rengi */
.swal2-icon.swal2-success .swal2-icon-content { color: #34d399 !important; }
/* Swal default success satırları (iconHtml yoksa) */
.swal2-icon.swal2-success:not([style*='iconHtml']) [class^=swal2-success-line] {
    background: #34d399 !important;
    display: block !important;
}

/* ─── Başlık ─── */
.swal2-title {
    color: #f1f5f9 !important;
    font-size: 22px !important;
    font-weight: 800 !important;
    letter-spacing: -0.7px !important;
    padding: 0 0 4px !important;
    line-height: 1.25 !important;
    font-family: 'Inter', sans-serif !important;
    text-wrap: balance !important;
}

/* ─── Gövde ─── */
.swal2-html-container {
    color: #64748b !important;
    font-size: 14px !important;
    line-height: 1.7 !important;
    margin: 6px 0 0 !important;
    padding: 0 !important;
    font-family: 'Inter', sans-serif !important;
    text-wrap: balance !important;
}

/* ─── Butonlar ─── */
.swal2-actions {
    margin: 26px 0 0 !important;
    gap: 10px !important;
    flex-wrap: nowrap !important;
}
.swal2-confirm {
    border: none !important;
    border-radius: 12px !important;
    padding: 12px 28px !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    letter-spacing: -0.2px !important;
    font-family: 'Inter', sans-serif !important;
    cursor: pointer !important;
    min-width: 120px !important;
    transition: all 0.2s cubic-bezier(0.4,0,0.2,1) !important;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
    box-shadow: 0 8px 24px rgba(239,68,68,0.38) !important;
    color: #fff !important;
    outline: none !important;
}
.swal2-confirm:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 14px 32px rgba(239,68,68,0.5) !important;
}
.swal2-cancel {
    background: rgba(255,255,255,0.05) !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
    border-radius: 12px !important;
    color: #94a3b8 !important;
    padding: 12px 28px !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    font-family: 'Inter', sans-serif !important;
    cursor: pointer !important;
    min-width: 120px !important;
    transition: all 0.2s !important;
}
.swal2-cancel:hover {
    background: rgba(255,255,255,0.1) !important;
    border-color: rgba(255,255,255,0.18) !important;
    color: #f1f5f9 !important;
    transform: translateY(-1px) !important;
}

/* ─── Timer bar ─── */
.swal2-timer-progress-bar-container {
    border-radius: 0 0 22px 22px !important;
    overflow: hidden !important;
}
.swal2-timer-progress-bar {
    background: linear-gradient(90deg, #38bdf8, #818cf8) !important;
    height: 3px !important;
}

/* ─── Toast ─── */
.swal2-popup.swal2-toast {
    background: #0c1018 !important;
    border: 1px solid rgba(255,255,255,0.09) !important;
    border-radius: 16px !important;
    box-shadow: 0 8px 40px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.04) !important;
    padding: 14px 20px !important;
    max-width: 380px !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    overflow: hidden !important;
}
.swal2-popup.swal2-toast .swal2-icon {
    width: 34px !important;
    height: 34px !important;
    border-radius: 10px !important;
    margin: 0 12px 0 0 !important;
    min-width: 34px !important;
}
.swal2-popup.swal2-toast .swal2-icon .swal2-icon-content { font-size: 1.1em !important; }
.swal2-popup.swal2-toast .swal2-title {
    font-size: 14px !important;
    padding: 0 !important;
    letter-spacing: -0.3px !important;
}
.swal2-popup.swal2-toast .swal2-html-container {
    font-size: 12.5px !important;
    margin: 2px 0 0 !important;
}
.swal2-popup.swal2-toast .swal2-timer-progress-bar {
    height: 3px !important;
}

/* ─── Input ─── */
.swal2-input, .swal2-textarea {
    background: rgba(255,255,255,0.04) !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
    border-radius: 11px !important;
    color: #f1f5f9 !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 14px !important;
    padding: 12px 16px !important;
    box-shadow: none !important;
}
.swal2-input:focus, .swal2-textarea:focus {
    border-color: rgba(56,189,248,0.4) !important;
    box-shadow: 0 0 0 3px rgba(56,189,248,0.1) !important;
    outline: none !important;
    background: rgba(255,255,255,0.06) !important;
}
.swal2-input::placeholder { color: #334155 !important; }
.swal2-validation-message {
    background: rgba(239,68,68,0.08) !important;
    color: #f87171 !important;
    border-radius: 8px !important;
    font-size: 13px !important;
}

/* ─── Kapat butonu ─── */
.swal2-close {
    color: #475569 !important;
    width: 36px !important; height: 36px !important;
    border-radius: 50% !important;
    transition: all 0.2s !important;
    font-size: 22px !important;
}
.swal2-close:hover { color: #f1f5f9 !important; background: rgba(255,255,255,0.08) !important; }

/* ─── Responsive ─── */
@media (max-width: 520px) {
    .swal2-popup { padding: 32px 22px 26px !important; border-radius: 18px !important; }
    .swal2-actions { flex-direction: column !important; width: 100% !important; }
    .swal2-confirm, .swal2-cancel { width: 100% !important; }
}
