/* ========================================
   SWEETALERT2 CUSTOM STYLES - TEMA STANDARTLARI
   ======================================== */

/* Modal Popup - Kompakt & Modern */
.swal-popup-custom {
    border-radius: 0.75rem !important;
    padding: 1.5rem !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15) !important;
    max-width: 400px !important;
    font-family: 'Inter', sans-serif !important;
}

/* Title - Kompakt */
.swal-title-custom {
    font-size: 1.125rem !important;
    font-weight: 600 !important;
    color: #1e293b !important;
    margin: 0.5rem 0 !important;
    padding: 0 !important;
    line-height: 1.4 !important;
}

/* Text Container - Kompakt */
.swal-text-custom {
    font-size: 0.875rem !important;
    color: #64748b !important;
    margin: 0.75rem 0 1rem 0 !important;
    padding: 0 !important;
    line-height: 1.5 !important;
}

.swal-text-custom p {
    margin: 0 !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
}

/* Icon - Kompakt */
.swal2-icon {
    width: 4rem !important;
    height: 4rem !important;
    margin: 0.5rem auto 1rem auto !important;
    border-width: 3px !important;
}

.swal2-icon .swal2-icon-content {
    font-size: 2.5rem !important;
}

/* Actions Container - Kompakt */
.swal-actions-custom {
    margin: 0 !important;
    padding: 0 !important;
    gap: 0.5rem !important;
}

/* Buttons - Tema Standartları */
.swal-confirm-btn,
.swal-cancel-btn {
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    padding: 0.5rem 1.25rem !important;
    border-radius: 0.5rem !important;
    border: none !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    font-family: 'Inter', sans-serif !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 90px !important;
}

/* Confirm Button - Primary */
.swal-btn-primary {
    background-color: #3b82f6 !important;
    color: white !important;
}

.swal-btn-primary:hover {
    background-color: #2563eb !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4) !important;
}

.swal-btn-primary:active {
    transform: translateY(0) !important;
}

/* Confirm Button - Danger (Delete) */
.swal-btn-danger {
    background-color: #ef4444 !important;
    color: white !important;
}

.swal-btn-danger:hover {
    background-color: #dc2626 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4) !important;
}

.swal-btn-danger:active {
    transform: translateY(0) !important;
}

/* Cancel Button */
.swal-cancel-btn {
    background-color: #f1f5f9 !important;
    color: #64748b !important;
}

.swal-cancel-btn:hover {
    background-color: #e2e8f0 !important;
    color: #475569 !important;
}

/* Ultra-Premium Glassmorphic Toast Notifications */
.swal-toast-custom {
    backdrop-filter: blur(20px) saturate(190%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(190%) !important;
    border-radius: 16px !important;
    padding: 14px 20px !important;
    font-family: 'Inter', sans-serif !important;
    min-width: 340px !important;
    max-width: 440px !important;
    display: flex !important;
    align-items: center !important;
    gap: 16px !important;
    margin-top: 15px !important;
    margin-right: 15px !important;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

/* Success status: Soft light emerald background, dark green text & white icon circle */
.swal2-container.swal2-top-end .swal2-toast.swal2-icon-success {
    background: rgba(240, 253, 244, 0.96) !important;
    border: 1px solid rgba(16, 185, 129, 0.2) !important;
    box-shadow: 0 15px 35px rgba(16, 185, 129, 0.08), 0 4px 12px rgba(0, 0, 0, 0.02) !important;
}
.swal2-container.swal2-top-end .swal2-toast.swal2-icon-success .swal-toast-title {
    color: #065f46 !important;
}
.swal2-container.swal2-top-end .swal2-toast.swal2-icon-success .swal2-html-container {
    color: #047857 !important;
}
.swal2-container.swal2-top-end .swal2-toast.swal2-icon-success .swal2-icon {
    background-color: #ffffff !important;
    color: #10b981 !important;
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.12) !important;
}

/* Error status: Soft light danger/red background, dark red text & white icon circle */
.swal2-container.swal2-top-end .swal2-toast.swal2-icon-error {
    background: rgba(254, 242, 242, 0.96) !important;
    border: 1px solid rgba(239, 68, 68, 0.2) !important;
    box-shadow: 0 15px 35px rgba(239, 68, 68, 0.08), 0 4px 12px rgba(0, 0, 0, 0.02) !important;
}
.swal2-container.swal2-top-end .swal2-toast.swal2-icon-error .swal-toast-title {
    color: #991b1b !important;
}
.swal2-container.swal2-top-end .swal2-toast.swal2-icon-error .swal2-html-container {
    color: #b91c1c !important;
}
.swal2-container.swal2-top-end .swal2-toast.swal2-icon-error .swal2-icon {
    background-color: #ffffff !important;
    color: #ef4444 !important;
    box-shadow: 0 4px 10px rgba(239, 68, 68, 0.12) !important;
}

/* Warning status: Soft light amber background, dark brown/orange text & white icon circle */
.swal2-container.swal2-top-end .swal2-toast.swal2-icon-warning {
    background: rgba(255, 251, 235, 0.96) !important;
    border: 1px solid rgba(245, 158, 11, 0.2) !important;
    box-shadow: 0 15px 35px rgba(245, 158, 11, 0.08), 0 4px 12px rgba(0, 0, 0, 0.02) !important;
}
.swal2-container.swal2-top-end .swal2-toast.swal2-icon-warning .swal-toast-title {
    color: #92400e !important;
}
.swal2-container.swal2-top-end .swal2-toast.swal2-icon-warning .swal2-html-container {
    color: #b45309 !important;
}
.swal2-container.swal2-top-end .swal2-toast.swal2-icon-warning .swal2-icon {
    background-color: #ffffff !important;
    color: #f59e0b !important;
    box-shadow: 0 4px 10px rgba(245, 158, 11, 0.12) !important;
}

/* Info status: Soft light sapphire background, dark blue text & white icon circle */
.swal2-container.swal2-top-end .swal2-toast.swal2-icon-info {
    background: rgba(239, 246, 255, 0.96) !important;
    border: 1px solid rgba(59, 130, 246, 0.2) !important;
    box-shadow: 0 15px 35px rgba(59, 130, 246, 0.08), 0 4px 12px rgba(0, 0, 0, 0.02) !important;
}
.swal2-container.swal2-top-end .swal2-toast.swal2-icon-info .swal-toast-title {
    color: #1e40af !important;
}
.swal2-container.swal2-top-end .swal2-toast.swal2-icon-info .swal2-html-container {
    color: #1d4ed8 !important;
}
.swal2-container.swal2-top-end .swal2-toast.swal2-icon-info .swal2-icon {
    background-color: #ffffff !important;
    color: #3b82f6 !important;
    box-shadow: 0 4px 10px rgba(59, 130, 246, 0.12) !important;
}

.swal-toast-title {
    font-size: 0.9rem !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    letter-spacing: -0.01em !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
}

/* SweetAlert HTML Container inside Toast */
.swal2-toast .swal2-html-container {
    font-size: 0.8125rem !important;
    font-weight: 500 !important;
    margin: 4px 0 0 0 !important;
    line-height: 1.45 !important;
}

/* Rounded white background circles for the icons to stand out and align perfectly */
.swal2-toast .swal2-icon {
    width: 2.75rem !important;
    height: 2.75rem !important;
    min-width: 2.75rem !important;
    border-radius: 50% !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: none !important;
    box-sizing: border-box !important;
}

/* Perfect alignment for SVG inside custom icon content */
.swal2-toast .swal2-icon .swal2-icon-content {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 1.5rem !important;
    height: 1.5rem !important;
    font-size: 1.5rem !important;
    line-height: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Custom SVG styling */
.swal2-toast .swal2-icon .swal2-icon-content svg {
    width: 1.5rem !important;
    height: 1.5rem !important;
    display: block !important;
}

/* Hide default SweetAlert animation elements to prevent overflow/uncentered look */
.swal2-toast .swal2-success-ring,
.swal2-toast .swal2-success-fix,
.swal2-toast .swal2-success [class^='swal2-success-line'],
.swal2-toast .swal2-x-mark,
.swal2-toast .swal2-x-mark-line-left,
.swal2-toast .swal2-x-mark-line-right {
    display: none !important;
}

/* Timer Progress Bar */
.swal2-timer-progress-bar {
    background: rgba(0, 0, 0, 0.2) !important;
}

/* Responsive - Mobile */
@media (max-width: 576px) {
    .swal-popup-custom {
        max-width: calc(100vw - 2rem) !important;
        padding: 1.25rem !important;
        margin: 1rem !important;
    }
    
    .swal-title-custom {
        font-size: 1rem !important;
    }
    
    .swal-text-custom {
        font-size: 0.8125rem !important;
    }
    
    .swal2-icon {
        width: 3.5rem !important;
        height: 3.5rem !important;
    }
    
    .swal-confirm-btn,
    .swal-cancel-btn {
        font-size: 0.8125rem !important;
        padding: 0.5rem 1rem !important;
        min-width: 80px !important;
    }
    
    .swal-toast-custom {
        min-width: calc(100vw - 2rem) !important;
        max-width: calc(100vw - 2rem) !important;
        margin: 0.5rem !important;
    }
}

/* Responsive - Tablet */
@media (max-width: 768px) {
    .swal-popup-custom {
        max-width: 360px !important;
    }
}

/* Loading State */
.swal2-loading .swal2-confirm {
    opacity: 0.6 !important;
    pointer-events: none !important;
}

/* Focus States */
.swal-confirm-btn:focus,
.swal-cancel-btn:focus {
    outline: 2px solid #3b82f6 !important;
    outline-offset: 2px !important;
}

/* Animation Override - Daha smooth */
.swal2-show {
    animation: swal2-show 0.2s !important;
}

.swal2-hide {
    animation: swal2-hide 0.15s !important;
}

/* Backdrop - SADECE modal dialog'lar için, toast'lar için DEĞİL */
.swal2-container:not(.swal2-top-end):not(.swal2-top):not(.swal2-top-start):not(.swal2-center-start):not(.swal2-center-end):not(.swal2-bottom-start):not(.swal2-bottom):not(.swal2-bottom-end) {
    backdrop-filter: blur(2px) !important;
}

.swal2-backdrop-show {
    background: rgba(0, 0, 0, 0.4) !important;
}

/* Toast'lar için backdrop YOK */
.swal2-container.swal2-top-end,
.swal2-container.swal2-top,
.swal2-container.swal2-top-start,
.swal2-container.swal2-center-start,
.swal2-container.swal2-center-end,
.swal2-container.swal2-bottom-start,
.swal2-container.swal2-bottom,
.swal2-container.swal2-bottom-end {
    backdrop-filter: none !important;
    background: transparent !important;
}

/* Close Button - Eğer kullanılırsa */
.swal2-close {
    font-size: 1.5rem !important;
    color: #94a3b8 !important;
    transition: color 0.2s !important;
}

.swal2-close:hover {
    color: #64748b !important;
}

/* Input Fields - Eğer kullanılırsa */
.swal2-input,
.swal2-textarea {
    border: 2px solid #e2e8f0 !important;
    border-radius: 0.5rem !important;
    padding: 0.625rem 1rem !important;
    font-size: 0.875rem !important;
    font-family: 'Inter', sans-serif !important;
    transition: all 0.2s !important;
}

.swal2-input:focus,
.swal2-textarea:focus {
    border-color: #6366f1 !important;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1) !important;
    outline: none !important;
}

/* Validation Message */
.swal2-validation-message {
    background: #fef2f2 !important;
    color: #ef4444 !important;
    border: 1px solid #fecaca !important;
    border-radius: 0.375rem !important;
    padding: 0.5rem 0.75rem !important;
    font-size: 0.8125rem !important;
    margin-top: 0.5rem !important;
}
