/* Android Material Design Toast Animations */
@-webkit-keyframes notyf-fadeinup {
    0% {
        opacity: 0;
        transform: translateY(30%) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes notyf-fadeinup {
    0% {
        opacity: 0;
        transform: translateY(30%) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@-webkit-keyframes notyf-fadeoutdown {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    50% {
        opacity: 0.5;
        transform: translateY(15%) scale(0.95);
    }

    to {
        opacity: 0;
        transform: translateY(30%) scale(0.9);
    }
}

@keyframes notyf-fadeoutdown {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    50% {
        opacity: 0.5;
        transform: translateY(15%) scale(0.95);
    }

    to {
        opacity: 0;
        transform: translateY(30%) scale(0.9);
    }
}

@-webkit-keyframes ripple {
    0% {
        transform: scale(0);
        opacity: 0.8;
    }

    to {
        transform: scale(1);
        opacity: 0;
    }
}

@keyframes ripple {
    0% {
        transform: scale(0);
        opacity: 0.8;
    }

    to {
        transform: scale(1);
        opacity: 0;
    }
}

/* Fast Text Animation Keyframe */
@keyframes notyf-textfadein {
    0% {
        opacity: 0;
        transform: translateY(10px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@-webkit-keyframes notyf-textfadein {
    0% {
        opacity: 0;
        transform: translateY(10px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Android Shadow Animation */
@keyframes notyf-shadowfadein {
    0% {
        opacity: 0;
        transform: scaleX(0.8) scaleY(0.5);
    }

    to {
        opacity: 1;
        transform: scaleX(1) scaleY(1);
    }
}

@-webkit-keyframes notyf-shadowfadein {
    0% {
        opacity: 0;
        transform: scaleX(0.8) scaleY(0.5);
    }

    to {
        opacity: 1;
        transform: scaleX(1) scaleY(1);
    }
}

/* Android Toast Container */
.notyf {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    color: #fff;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    pointer-events: none;
    box-sizing: border-box;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Android Toast Card */
.notyf__toast {
    display: block;
    overflow: hidden;
    pointer-events: auto;
    animation: notyf-fadeinup 0.15s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 4px 16px rgba(0, 0, 0, 0.08);
    position: relative;
    padding: 0;
    border-radius: 24px;
    max-width: none;
    min-width: auto;
    width: fit-content;
    box-sizing: border-box;
    flex-shrink: 0;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    /* Background removed - each notification type will have its own background */
}

/* Default notification style for notifications without specific type */
.notyf__toast:not(.notyf__toast--success):not(.notyf__toast--error):not(.notyf__toast--warning):not(.notyf__toast--info):not(.notyf__toast--custom):not(.notyf__toast--dark) {
    background: #6c757d;
    color: #ffffff;
}

.notyf__toast:not(.notyf__toast--success):not(.notyf__toast--error):not(.notyf__toast--warning):not(.notyf__toast--info):not(.notyf__toast--custom):not(.notyf__toast--dark)::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 10%;
    right: 10%;
    height: 12px;
    background: linear-gradient(to bottom, rgba(108, 117, 125, 0.4), rgba(108, 117, 125, 0.1), transparent);
    border-radius: 0 0 20px 20px;
    filter: blur(4px);
    z-index: -1;
    opacity: 0;
    animation: notyf-shadowfadein 0.15s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    animation-delay: 0.03s;
}

.notyf__toast--disappear {
    animation: notyf-fadeoutdown 0.2s cubic-bezier(0.55, 0.055, 0.675, 0.19) forwards;
    animation-delay: 0s;
}

.notyf__toast--upper {
    margin-bottom: 16px;
}

.notyf__toast--lower {
    margin-top: 16px;
}

.notyf__toast--dismissible .notyf__wrapper {
    padding-right: 48px;
}

/* Android Toast Wrapper */
.notyf__wrapper {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    border-radius: 24px;
    position: relative;
    z-index: 10;
    min-height: 48px;
    width: fit-content;
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    justify-content: center;
    /* Mesajı ortala */
}

/* Icon alanları kaldırıldı - sadece mesaj gösteriliyor */

/* Android Dismiss Button */
.notyf__dismiss {
    position: absolute;
    top: 50%;
    right: 12px;
    height: 32px;
    width: 32px;
    margin-top: -16px;
    animation: notyf-fadeinup 0.15s forwards;
    animation-delay: 0.05s;
    opacity: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notyf__dismiss-btn {
    background-color: rgba(255, 255, 255, 0.12);
    border: none;
    cursor: pointer;
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    opacity: 0.8;
    height: 100%;
    width: 100%;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.notyf__dismiss-btn:after,
.notyf__dismiss-btn:before {
    content: "";
    background: #fff;
    height: 12px;
    width: 2px;
    border-radius: 2px;
    position: absolute;
    left: calc(50% - 1px);
    top: calc(50% - 6px);
}

.notyf__dismiss-btn:after {
    transform: rotate(-45deg);
}

.notyf__dismiss-btn:before {
    transform: rotate(45deg);
}

.notyf__dismiss-btn:hover {
    opacity: 1;
    background-color: rgba(255, 255, 255, 0.25);
    transform: scale(1.1) rotateZ(180deg);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.notyf__dismiss-btn:active {
    opacity: 0.9;
    transform: scale(0.95) rotateZ(90deg);
    transition: all 0.1s ease;
}

/* Android Message */
.notyf__message {
    vertical-align: middle;
    position: relative;
    opacity: 0;
    animation: notyf-textfadein 0.12s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    animation-delay: 0s;
    line-height: 1.4;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.1px;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Android Ripple Effect */
.notyf__ripple {
    height: 400px;
    width: 400px;
    position: absolute;
    transform-origin: center;
    right: 50%;
    top: 50%;
    border-radius: 50%;
    transform: translate(50%, -50%) scale(0);
    z-index: 5;
    animation: ripple 0.25s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    opacity: 0.8;
}

/* Toast Type Colors - Solid Colors Only */
.notyf__toast--success {
    background: #00C853;
    box-shadow: 0 8px 32px rgba(76, 175, 80, 0.25), 0 4px 16px rgba(76, 175, 80, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.notyf__toast--success::after {
    background: linear-gradient(to bottom, rgba(0, 200, 83, 0.5), rgba(0, 200, 83, 0.2), transparent);
}

.notyf__toast--error {
    background: #FF5252;
    box-shadow: 0 8px 32px rgba(244, 67, 54, 0.25), 0 4px 16px rgba(244, 67, 54, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.notyf__toast--error::after {
    background: linear-gradient(to bottom, rgba(255, 82, 82, 0.5), rgba(255, 82, 82, 0.2), transparent);
}

.notyf__toast--warning {
    background: #E65100;
    box-shadow: 0 8px 32px rgba(230, 81, 0, 0.25), 0 4px 16px rgba(230, 81, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.notyf__toast--warning::after {
    background: linear-gradient(to bottom, rgba(230, 81, 0, 0.5), rgba(230, 81, 0, 0.2), transparent);
}

.notyf__toast--warning .notyf__message {
    color: #ffffff;
}

.notyf__toast--info {
    background: #2196F3;
    box-shadow: 0 8px 32px rgba(33, 150, 243, 0.25), 0 4px 16px rgba(33, 150, 243, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.notyf__toast--info::after {
    background: linear-gradient(to bottom, rgba(33, 150, 243, 0.5), rgba(33, 150, 243, 0.2), transparent);
}

.notyf__toast--custom {
    background: #9C27B0;
    box-shadow: 0 8px 32px rgba(156, 39, 176, 0.25), 0 4px 16px rgba(156, 39, 176, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.notyf__toast--custom::after {
    background: linear-gradient(to bottom, rgba(156, 39, 176, 0.5), rgba(156, 39, 176, 0.2), transparent);
}

.notyf__toast--dark {
    background: #2E2E2E;
    box-shadow: 0 8px 32px rgba(46, 46, 46, 0.25), 0 4px 16px rgba(46, 46, 46, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.notyf__toast--dark::after {
    background: linear-gradient(to bottom, rgba(46, 46, 46, 0.5), rgba(46, 46, 46, 0.2), transparent);
}

/* Mobile Responsive */
@media only screen and (max-width: 480px) {
    .notyf {
        padding: 16px;
        align-items: center;
    }

    .notyf__toast {
        max-width: calc(100vw - 32px);
        min-width: calc(100vw - 32px);
        /* Mobilde minimum genişlik ekran genişliği kadar */
        border-radius: 20px;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
        width: 100%;
        /* Mobilde tam genişlik */
    }

    .notyf__wrapper {
        padding: 14px 18px;
        min-height: 44px;
        width: 100%;
        /* Mobilde wrapper da tam genişlik */
        justify-content: flex-start;
        /* Mobilde mesajı sola hizala */
    }

    .notyf__message {
        font-size: 13px;
        white-space: normal;
        /* Mobilde yazıları alt alta getir */
        overflow: visible;
        /* Mobilde overflow'u göster */
        text-overflow: unset;
        /* Mobilde ellipsis'i kaldır */
        flex: 1;
        /* Mobilde mesaj alanını genişlet */
        animation: notyf-textfadein 0.06s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
        animation-delay: 0s;
    }

    .notyf__dismiss {
        width: 28px;
        height: 28px;
        right: 10px;
    }

    /* Icon referansları kaldırıldı */
}

/* Dark Mode Styles */
.dark-mode .notyf {
    color: #ffffff;
}

.dark-mode .notyf__toast {
    /* Dark mode base styling - background removed to prevent override */
    box-shadow: 0 8px 32px rgba(52, 58, 64, 0.3), 0 4px 16px rgba(52, 58, 64, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dark-mode .notyf__toast:not(.notyf__toast--success):not(.notyf__toast--error):not(.notyf__toast--warning):not(.notyf__toast--info):not(.notyf__toast--custom):not(.notyf__toast--dark) {
    background: #343a40;
    color: #ffffff;
}

.dark-mode .notyf__toast:not(.notyf__toast--success):not(.notyf__toast--error):not(.notyf__toast--warning):not(.notyf__toast--info):not(.notyf__toast--custom):not(.notyf__toast--dark)::after {
    background: linear-gradient(to bottom, rgba(52, 58, 64, 0.5), rgba(52, 58, 64, 0.2), transparent);
}

/* Success, Error, Warning, Info renkleri hem light hem dark mode'da aynı */
.dark-mode .notyf__toast--success {
    background: #00C853;
    box-shadow: 0 8px 32px rgba(76, 175, 80, 0.25), 0 4px 16px rgba(76, 175, 80, 0.15);
}

.dark-mode .notyf__toast--success::after {
    background: linear-gradient(to bottom, rgba(0, 200, 83, 0.6), rgba(0, 200, 83, 0.25), transparent);
}

.dark-mode .notyf__toast--error {
    background: #FF5252;
    box-shadow: 0 8px 32px rgba(244, 67, 54, 0.25), 0 4px 16px rgba(244, 67, 54, 0.15);
}

.dark-mode .notyf__toast--error::after {
    background: linear-gradient(to bottom, rgba(255, 82, 82, 0.6), rgba(255, 82, 82, 0.25), transparent);
}

.dark-mode .notyf__toast--warning {
    background: #E65100;
    box-shadow: 0 8px 32px rgba(230, 81, 0, 0.3), 0 4px 16px rgba(230, 81, 0, 0.2);
    color: #ffffff;
}

.dark-mode .notyf__toast--warning::after {
    background: linear-gradient(to bottom, rgba(230, 81, 0, 0.6), rgba(230, 81, 0, 0.25), transparent);
}

.dark-mode .notyf__toast--warning .notyf__message {
    color: #ffffff;
}

.dark-mode .notyf__toast--info {
    background: #2196F3;
    box-shadow: 0 8px 32px rgba(33, 150, 243, 0.25), 0 4px 16px rgba(33, 150, 243, 0.15);
}

.dark-mode .notyf__toast--info::after {
    background: linear-gradient(to bottom, rgba(33, 150, 243, 0.6), rgba(33, 150, 243, 0.25), transparent);
}

.dark-mode .notyf__toast--custom {
    background: #6f42c1;
    box-shadow: 0 8px 32px rgba(111, 66, 193, 0.25), 0 4px 16px rgba(111, 66, 193, 0.15);
}

.dark-mode .notyf__toast--custom::after {
    background: linear-gradient(to bottom, rgba(111, 66, 193, 0.6), rgba(111, 66, 193, 0.25), transparent);
}

.dark-mode .notyf__toast--dark {
    background: #212529;
    box-shadow: 0 8px 32px rgba(33, 37, 41, 0.4), 0 4px 16px rgba(33, 37, 41, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.dark-mode .notyf__toast--dark::after {
    background: linear-gradient(to bottom, rgba(33, 37, 41, 0.6), rgba(33, 37, 41, 0.25), transparent);
}

/* Icon referansları kaldırıldı */

.dark-mode .notyf__dismiss-btn {
    background-color: rgba(255, 255, 255, 0.15);
}

.dark-mode .notyf__dismiss-btn:hover {
    background-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.dark-mode .notyf__dismiss-btn:after,
.dark-mode .notyf__dismiss-btn:before {
    background: #ffffff;
}

.dark-mode .notyf__message {
    color: #ffffff;
}

/* Dark Mode Mobile Responsive */
@media only screen and (max-width: 480px) {
    .dark-mode .notyf__toast {
        box-shadow: 0 4px 16px rgba(52, 58, 64, 0.4);
        max-width: calc(100vw - 32px);
        min-width: calc(100vw - 32px);
        width: 100%;
    }

    .dark-mode .notyf__wrapper {
        width: 100%;
        justify-content: flex-start;
    }

    .dark-mode .notyf__message {
        white-space: normal;
        overflow: visible;
        text-overflow: unset;
        flex: 1;
        animation: notyf-textfadein 0.06s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
        animation-delay: 0s;
    }
}