/**
 * MODERN TOAST NOTIFICATION STİLLERİ
 * Sol alt köşede animasyonlu bildirimler
 */

.toast-container {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column-reverse;
    gap: 12px;
    max-width: 400px;
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transform: translateX(-120%);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: auto;
    min-width: 320px;
    max-width: 400px;
    border-left: 4px solid;
    position: relative;
    overflow: hidden;
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

/* Toast tipleri */
.toast-success {
    border-left-color: #28a745;
    background: linear-gradient(135deg, #ffffff 0%, #f0fff4 100%);
}

.toast-error {
    border-left-color: #dc3545;
    background: linear-gradient(135deg, #ffffff 0%, #fff5f5 100%);
}

.toast-warning {
    border-left-color: #ffc107;
    background: linear-gradient(135deg, #ffffff 0%, #fffbf0 100%);
}

.toast-info {
    border-left-color: #17a2b8;
    background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%);
}

/* İkonlar */
.toast-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-right: 12px;
    font-size: 20px;
}

.toast-success .toast-icon {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
}

.toast-error .toast-icon {
    background: linear-gradient(135deg, #dc3545 0%, #e74c3c 100%);
    color: white;
}

.toast-warning .toast-icon {
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
    color: white;
}

.toast-info .toast-icon {
    background: linear-gradient(135deg, #17a2b8 0%, #3498db 100%);
    color: white;
}

/* İçerik */
.toast-content {
    flex: 1;
    min-width: 0;
}

.toast-message {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    line-height: 1.5;
    word-wrap: break-word;
}

/* Kapatma butonu */
.toast-close {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border: none;
    background: transparent;
    color: #999;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 8px;
    transition: all 0.2s ease;
    padding: 0;
    font-size: 16px;
}

.toast-close:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #333;
}

/* Progress bar (opsiyonel) */
.toast::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: currentColor;
    opacity: 0.3;
    animation: toast-progress 4s linear;
}

@keyframes toast-progress {
    from {
        width: 100%;
    }
    to {
        width: 0%;
    }
}

/* Hover durumunda animasyonu durdur */
.toast:hover::after {
    animation-play-state: paused;
}

/* Responsive */
@media (max-width: 768px) {
    .toast-container {
        left: 10px;
        right: 10px;
        bottom: 10px;
        max-width: calc(100% - 20px);
    }
    
    .toast {
        min-width: unset;
        max-width: 100%;
    }
}

/* Dark mode support (opsiyonel) */
@media (prefers-color-scheme: dark) {
    .toast {
        background: #2d3748;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    }
    
    .toast-message {
        color: #e2e8f0;
    }
    
    .toast-close {
        color: #cbd5e0;
    }
    
    .toast-close:hover {
        background: rgba(255, 255, 255, 0.1);
        color: white;
    }
}

/* Animasyon iyileştirmeleri */
.toast:hover {
    transform: translateX(-5px) scale(1.02);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

/* Multiple toast'lar için spacing */
.toast-container .toast + .toast {
    margin-bottom: 12px;
}










