/* Ortak Toastr — kart + ikon hizası */
#toast-container {
    z-index: 10050 !important;
    pointer-events: none;
}

#toast-container.toast-top-center,
#toast-container.toast-bottom-left,
#toast-container.toast-bottom-right,
#toast-container.toast-top-right,
#toast-container.toast-top-left,
#toast-container.toast-bottom-center,
#toast-container.toast-top-full-width,
#toast-container.toast-bottom-full-width {
    top: 72px !important;
    bottom: auto !important;
    right: 16px !important;
    left: auto !important;
    width: auto !important;
}

#toast-container > div {
    pointer-events: auto;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    position: relative;
    width: min(380px, calc(100vw - 32px)) !important;
    margin: 0 0 10px 0 !important;
    padding: 16px 14px 14px 14px !important;
    min-height: 0;
    background-image: none !important;
    background-color: #ffffff !important;
    color: #0f172a !important;
    border: 1px solid rgba(15, 23, 42, 0.08) !important;
    border-radius: 16px !important;
    box-shadow:
        0 16px 40px rgba(15, 23, 42, 0.12),
        0 2px 8px rgba(15, 23, 42, 0.05) !important;
    opacity: 1;
    filter: none;
    -ms-filter: "alpha(opacity=100)";
    overflow: hidden;
    animation: obs-toast-in 0.26s ease-out;
}

#toast-container > :hover {
    opacity: 1;
    filter: none;
    -ms-filter: "alpha(opacity=100)";
    cursor: default;
}

@keyframes obs-toast-in {
    from {
        opacity: 0;
        transform: translateX(12px) scale(0.985);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

#toast-container > .toast-success {
    box-shadow:
        inset 3px 0 0 #22c55e,
        0 16px 40px rgba(15, 23, 42, 0.12) !important;
}

#toast-container > .toast-error {
    box-shadow:
        inset 3px 0 0 #ef4444,
        0 16px 40px rgba(15, 23, 42, 0.12) !important;
}

#toast-container > .toast-warning {
    box-shadow:
        inset 3px 0 0 #f59e0b,
        0 16px 40px rgba(15, 23, 42, 0.12) !important;
}

#toast-container > .toast-info {
    box-shadow:
        inset 3px 0 0 #0ea5b7,
        0 16px 40px rgba(15, 23, 42, 0.12) !important;
}

#toast-container > div:before {
    content: none !important;
    display: none !important;
    background-image: none !important;
}

.obs-toast-icon {
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    margin: 0;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    line-height: 1;
}

.obs-toast-icon i {
    display: block;
    width: auto;
    height: auto;
    margin: 0;
    line-height: 1;
    font-size: 15px;
}

.toast-success .obs-toast-icon {
    color: #15803d;
    background: #ecfdf3;
}

.toast-error .obs-toast-icon {
    color: #b91c1c;
    background: #fef2f2;
}

.toast-warning .obs-toast-icon {
    color: #b45309;
    background: #fffbeb;
}

.toast-info .obs-toast-icon {
    color: #0e7490;
    background: #ecfeff;
}

.obs-toast-body {
    flex: 1 1 auto;
    min-width: 0;
    padding: 2px 4px 0 0;
}

#toast-container .toast-title {
    display: block;
    font-size: 13px !important;
    font-weight: 700 !important;
    letter-spacing: -0.01em;
    color: #0f172a !important;
    margin: 0 0 3px !important;
    line-height: 1.25 !important;
}

#toast-container .toast-message {
    display: block;
    font-size: 13px !important;
    line-height: 1.45 !important;
    color: #475569 !important;
    word-break: break-word;
}

#toast-container .toast-message a,
#toast-container .toast-message label {
    color: #0e7490;
}

#toast-container .toast-message a:hover {
    color: #155e75;
}

#toast-container .toast-close-button {
    position: static !important;
    float: none !important;
    flex: 0 0 auto;
    align-self: flex-start;
    margin: -2px -2px 0 0;
    padding: 0 4px !important;
    color: #94a3b8 !important;
    text-shadow: none !important;
    font-weight: 300 !important;
    font-size: 20px !important;
    line-height: 1 !important;
    opacity: 1 !important;
}

#toast-container .toast-close-button:hover,
#toast-container .toast-close-button:focus {
    color: #334155 !important;
    opacity: 1 !important;
}

.obs-toast-sure {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: rgba(15, 23, 42, 0.06);
    overflow: hidden;
    z-index: 2;
}

.obs-toast-sure-bar {
    display: block;
    height: 100%;
    width: 100%;
    transform-origin: left center;
}

.toast-success .obs-toast-sure-bar {
    background: #22c55e;
}

.toast-error .obs-toast-sure-bar {
    background: #ef4444;
}

.toast-warning .obs-toast-sure-bar {
    background: #f59e0b;
}

.toast-info .obs-toast-sure-bar {
    background: #0ea5b7;
}

@media (max-width: 480px) {
    #toast-container.toast-top-center,
    #toast-container.toast-bottom-left,
    #toast-container.toast-bottom-right,
    #toast-container.toast-top-right,
    #toast-container.toast-top-left,
    #toast-container.toast-bottom-center,
    #toast-container.toast-top-full-width,
    #toast-container.toast-bottom-full-width {
        top: 62px !important;
        right: 10px !important;
        left: 10px !important;
        width: auto !important;
    }

    #toast-container > div {
        width: 100% !important;
        gap: 10px;
        padding: 12px !important;
    }

    .obs-toast-icon {
        flex-basis: 34px;
        width: 34px;
        height: 34px;
        border-radius: 10px;
        font-size: 14px;
    }
}
