/* SweetAlert2 özel stilleri */

/* SweetAlert2 container için genel stiller */
.swal2-container {
    z-index: 99999 !important;
}

/* Normal modal için backdrop ve z-index ayarları */
.swal2-container:not(.swal2-top) {
    z-index: 99999 !important;
    background-color: rgba(0, 0, 0, 0.4) !important;
}

/* Modal popup için özel stiller */
.swal2-popup:not(.swal2-toast) {
    z-index: 100000 !important;
    position: relative;
}

/* Toast popup için özel stiller */
.swal2-top-popup {
    padding: 0.75rem 1.5rem;
    margin-top: 1rem;
    width: auto !important;
    max-width: 500px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

/* Toast container için özel stiller */
.swal2-top-container {
    position: fixed !important;
    z-index: 99999 !important;
    top: 0 !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: auto !important;
}

/* Toast icon için özel stiller */
.swal2-top-popup .swal2-icon {
    margin: 0.5rem auto;
    width: 2em;
    height: 2em;
    border-width: 0.15em;
}

/* Toast icon içindeki semboller için özel stiller */
.swal2-top-popup .swal2-icon .swal2-icon-content {
    font-size: 1.5em;
}

/* Toast başlık için özel stiller */
.swal2-top-popup .swal2-title {
    margin: 0.25rem 0;
    font-size: 1.25rem;
}

/* Toast içerik metni için özel stiller */
.swal2-top-popup .swal2-html-container {
    margin: 0.25rem 0;
    font-size: 1rem;
}

/* Toast butonlar için özel stiller */
.swal2-top-popup .swal2-actions {
    margin: 0.5rem auto 0;
}

/* Toast buton için özel stiller */
.swal2-top-popup .swal2-confirm {
    font-size: 0.875rem;
    padding: 0.375rem 0.75rem;
}

/* Progress bar için özel stiller */
.swal2-top-popup .swal2-timer-progress-bar {
    height: 0.15rem;
}

/* SweetAlert2 overlay'i gizle (ekran kaymasını önlemek için) */
body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown) {
    overflow: visible !important;
    height: auto !important;
}

body.swal2-shown.swal2-toast-shown {
    overflow: auto !important;
    height: auto !important;
    padding-right: 0 !important;
}

.swal2-container.swal2-top {
    align-items: flex-start !important;
    padding-top: 0.75rem !important;
}

/* Toast için backdrop gizle, normal modal için göster */
.swal2-container.swal2-top .swal2-backdrop-show {
    background: transparent !important;
}

/* Normal modal için backdrop göster */
.swal2-container:not(.swal2-top) .swal2-backdrop-show {
    background: rgba(0, 0, 0, 0.4) !important;
}

/* Modal için özel sınıflar */
.swal2-modal-container {
    z-index: 99999 !important;
    background-color: rgba(0, 0, 0, 0.5) !important;
}

.swal2-modal-popup {
    z-index: 100000 !important;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* SweetAlert2 popup için animasyon düzeltmeleri */
.swal2-popup.swal2-toast.animate__animated {
    -webkit-animation-fill-mode: none;
    animation-fill-mode: none;
}