﻿/* SWEETALERT2 PROJE TEMASI (ISO Gen AI - Compact Dark Mode) v1
   Daha kompakt, daha az boşluklu ve zarif görünüm.
*/

/* 1. ARKA PLAN VE MODAL KONUMLANDIRMA */
.swal2-container.swal2-backdrop-show,
.swal2-container.swal2-noanimation {
    background: rgba(0, 0, 0, 0.7) !important;
    backdrop-filter: blur(3px);
}

/* 2. ANA PENCERE (POPUP) - KOMPAKT AYARLAR */
.swal2-popup {
    background: #111111 !important; /* cardBg */
    border: 1px solid #27272a !important; /* borderCol */
    border-radius: 0.75rem !important; /* Daha küçük köşe yuvarlama */
    padding: 1.25rem !important; /* İç boşluk ciddi oranda azaltıldı (Eskisi 2rem) */
    width: 22em !important; /* Genişlik daraltıldı */
    max-width: 90% !important;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5) !important;
}

/* 3. BAŞLIK */
.swal2-title {
    color: #ffffff !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 1.1rem !important; /* Yazı küçültüldü */
    font-weight: 600 !important;
    padding: 0.5rem 0 0.25rem 0 !important; /* Başlık boşlukları kısıldı */
}

/* 4. İÇERİK METNİ */
.swal2-html-container {
    color: #a1a1aa !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 0.85rem !important; /* Daha okunaklı küçük font */
    line-height: 1.5 !important;
    margin: 0.25rem 0 1rem 0 !important; /* Kenar boşlukları sıfırlandı */
}

/* 5. İKONLAR (ÖNEMLİ: Küçültme İşlemi) */
/* İkonları animasyonları bozmadan küçültmenin en iyi yolu transform kullanmaktır */
.swal2-icon {
    transform: scale(0.7) !important; /* %30 Küçültme */
    margin: 0.5rem auto 0 auto !important; /* Üst/Alt boşluk azaltıldı */
}

    /* Renk Tanımları (Aynı kaldı) */
    .swal2-icon.swal2-success {
        border-color: #22c55e !important;
        color: #22c55e !important;
    }

        .swal2-icon.swal2-success [class^=swal2-success-line] {
            background-color: #22c55e !important;
        }

        .swal2-icon.swal2-success .swal2-success-ring {
            border: .25em solid rgba(34, 197, 94, 0.2) !important;
        }

    .swal2-icon.swal2-error {
        border-color: #ef4444 !important;
        color: #ef4444 !important;
    }

        .swal2-icon.swal2-error [class^=swal2-x-mark-line] {
            background-color: #ef4444 !important;
        }

    .swal2-icon.swal2-warning {
        border-color: #eab308 !important;
        color: #eab308 !important;
    }

    .swal2-icon.swal2-info {
        border-color: #3b82f6 !important;
        color: #3b82f6 !important;
    }

    .swal2-icon.swal2-question {
        border-color: #71717a !important;
        color: #71717a !important;
    }

/* 6. BUTONLAR (ACTIONS) - KOMPAKT */
.swal2-actions {
    gap: 0.5rem !important; /* Butonlar birbirine yaklaştırıldı */
    margin: 0.75rem 0 0 0 !important; /* Üst boşluk azaltıldı */
    width: 100% !important;
    justify-content: center !important; /* İsteğe bağlı: 'end' yaparsanız sağa yaslanır */
}

/* Ortak Buton Stili */
.swal2-styled {
    margin: 0 !important; /* Varsayılan margin'i sıfırla */
    font-size: 0.8rem !important; /* Daha küçük buton yazısı */
    padding: 0.5rem 1.25rem !important; /* Buton iç boşluğu azaltıldı */
    border-radius: 0.5rem !important;
    font-weight: 500 !important;
    align-items: center !important;
    justify-content: center !important;
    height: 2.2rem !important; /* Sabit yükseklik */
}

    /* Onay Butonu */
    .swal2-styled.swal2-confirm {
        background-color: #3b82f6 !important;
        color: #ffffff !important;
        border: none !important;
        box-shadow: 0 2px 4px rgba(59, 130, 246, 0.2) !important;
    }

        .swal2-styled.swal2-confirm:hover {
            background-color: #2563eb !important;
        }

    /* İptal Butonu */
    .swal2-styled.swal2-cancel {
        background-color: transparent !important;
        color: #d4d4d8 !important;
        border: 1px solid #3f3f46 !important;
    }

        .swal2-styled.swal2-cancel:hover {
            background-color: #27272a !important;
            color: #ffffff !important;
        }

    /* Reddet Butonu */
    .swal2-styled.swal2-deny {
        background-color: #ef4444 !important;
    }

/* 7. INPUT ALANLARI - KOMPAKT */
.swal2-input, .swal2-textarea, .swal2-select {
    margin: 0.5rem auto !important; /* Margin azaltıldı */
    height: 2.25rem !important; /* Yükseklik azaltıldı */
    padding: 0 0.75rem !important;
    font-size: 0.85rem !important;
    background: #09090b !important; /* Daha koyu zemin */
    border: 1px solid #27272a !important;
    color: white !important;
    border-radius: 0.375rem !important;
}

    .swal2-input:focus {
        border-color: #3b82f6 !important;
        box-shadow: none !important;
    }

/* 8. KAPAT BUTONU (X) */
.swal2-close {
    font-size: 1.25rem !important; /* Daha küçük X */
    top: 0.5rem !important;
    right: 0.5rem !important;
    color: #52525b !important;
}

    .swal2-close:hover {
        color: #fff !important;
        background: transparent !important;
    }

/* 9. TOAST BİLDİRİMLERİ (Sağ Üst Köşe) */
.swal2-popup.swal2-toast {
    padding: 0.5rem 0.75rem !important;
    background: #111111 !important;
    border: 1px solid #27272a !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.5) !important;
    width: auto !important;
    min-width: 250px !important;
}

    .swal2-popup.swal2-toast .swal2-title {
        font-size: 0.85rem !important;
        font-weight: 500 !important;
        margin: 0 0.5rem !important;
    }

    .swal2-popup.swal2-toast .swal2-icon {
        transform: scale(0.6) !important; /* Toast ikonları daha da küçük */
        margin: 0 !important;
    }


/* ... (Mevcut SweetAlert kodlarınızın altına ekleyin) ... */

/* --- BOOTSTRAP BUTONLARI İÇİN "YAMA" (BOOTSTRAP OLMADAN) --- */
/* C# kodunda atanan 'btn btn-danger' vb. sınıfları burada manuel tanımlıyoruz */

/* 1. Temel .btn Sınıfı (Tüm butonların ortak özelliği) */
div:where(.swal2-container) .btn {
    align-items: center !important;
    justify-content: center !important;
    padding: 0.5rem 1.25rem !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    border-radius: 0.5rem !important;
    border: 1px solid transparent !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    text-decoration: none !important;
    line-height: 1.5 !important;
    margin: 0 5px !important; /* Butonlar arası boşluk */
    font-family: 'Inter', sans-serif !important;
}

/* 2. .btn-primary (Onay/Mavi) */
div:where(.swal2-container) .btn-primary {
    background-color: #3b82f6 !important; /* Blue-500 */
    color: #ffffff !important;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.3) !important;
}

    div:where(.swal2-container) .btn-primary:hover {
        background-color: #2563eb !important; /* Blue-600 */
        transform: translateY(-1px);
    }

/* 3. .btn-danger (Silme/Kırmızı) */
div:where(.swal2-container) .btn-danger {
    background-color: #ef4444 !important; /* Red-500 */
    color: #ffffff !important;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.3) !important;
}

    div:where(.swal2-container) .btn-danger:hover {
        background-color: #dc2626 !important; /* Red-600 */
        transform: translateY(-1px);
    }

/* 4. .btn-success (Başarılı/Yeşil) */
div:where(.swal2-container) .btn-success {
    background-color: #22c55e !important; /* Green-500 */
    color: #ffffff !important;
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.3) !important;
}

    div:where(.swal2-container) .btn-success:hover {
        background-color: #16a34a !important; /* Green-600 */
        transform: translateY(-1px);
    }

/* 5. .btn-secondary ve .btn-light (İptal/Gri) */
div:where(.swal2-container) .btn-secondary,
div:where(.swal2-container) .btn-light {
    background-color: transparent !important;
    border: 1px solid #3f3f46 !important; /* Zinc-700 */
    color: #d4d4d8 !important; /* Zinc-300 */
}

    div:where(.swal2-container) .btn-secondary:hover,
    div:where(.swal2-container) .btn-light:hover {
        background-color: #27272a !important; /* Zinc-800 */
        color: #ffffff !important;
        border-color: #52525b !important;
    }

/* 6. Focus Efekti (Tıklandığında oluşan çerçeve) */
div:where(.swal2-container) .btn:focus {
    box-shadow: 0 0 0 2px #111111, 0 0 0 4px #3b82f6 !important;
    outline: none !important;
}
