/* =================== MODERN TOAST NOTIFICATION SYSTEM =================== */

/* Toast Container - Sağ Üst (Notification İkonunun Altında) */
#modern-toast-container {
    position: fixed;
    top: 70px;
    right: 20px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
    max-width: 380px;
}

/* Toast Card - Kompakt Bildirim Stili */
.modern-toast {
    min-width: 320px;
    max-width: 380px;
    padding: 16px 18px;
    background: #2d2d32;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 4px 8px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 14px;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: all;
    border-left: 4px solid transparent;
    position: relative;
    overflow: hidden;
}

/* Show Animation - Sağdan Kayarak Gelir */
.modern-toast.show {
    opacity: 1;
    transform: translateX(0);
}

/* Hide Animation - Sağa Kayarak Gider */
.modern-toast.hide {
    opacity: 0;
    transform: translateX(100%);
    margin-bottom: -60px;
}

/* Progress Bar */
.modern-toast::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 100%;
    background: rgba(255, 255, 255, 0.3);
    transform-origin: left;
    animation: toast-progress 3s linear forwards;
}

@keyframes toast-progress {
    from {
        transform: scaleX(1);
    }
    to {
        transform: scaleX(0);
    }
}

/* Icon Container - Kompakt */
.modern-toast-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 20px;
}

/* Success Toast */
.modern-toast.success {
    border-left-color: #10b981;
    background: linear-gradient(135deg, #2d2d32 0%, #1f3d33 100%);
}

.modern-toast.success .modern-toast-icon {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* Error Toast */
.modern-toast.error {
    border-left-color: #ef4444;
    background: linear-gradient(135deg, #2d2d32 0%, #3d1f1f 100%);
}

.modern-toast.error .modern-toast-icon {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

/* Warning Toast */
.modern-toast.warning {
    border-left-color: #f59e0b;
    background: linear-gradient(135deg, #2d2d32 0%, #3d331f 100%);
}

.modern-toast.warning .modern-toast-icon {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

/* Info Toast */
.modern-toast.info {
    border-left-color: #3b82f6;
    background: linear-gradient(135deg, #2d2d32 0%, #1f2d3d 100%);
}

.modern-toast.info .modern-toast-icon {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Toast Content */
.modern-toast-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.modern-toast-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    margin: 0;
    letter-spacing: 0.2px;
}

.modern-toast-message {
    font-size: 0.85rem;
    color: #b0b0b0;
    margin: 0;
    line-height: 1.4;
}

/* Close Button */
.modern-toast-close {
    width: 24px;
    height: 24px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: #999;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
    font-size: 14px;
}

.modern-toast-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    transform: rotate(90deg);
}

/* Responsive */
@media (max-width: 768px) {
    #modern-toast-container {
        top: 60px;
        right: 10px;
        left: auto;
        max-width: calc(100vw - 20px);
    }

    .modern-toast {
        min-width: auto;
        max-width: 100%;
    }
}

/* Hover Effect */
.modern-toast:hover::before {
    animation-play-state: paused;
}

.modern-toast:hover {
    transform: translateX(-4px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45), 0 4px 10px rgba(0, 0, 0, 0.25);
}

/* Clickable Toast */
.modern-toast.clickable {
    cursor: pointer;
}

.modern-toast.clickable:hover {
    transform: translateX(-4px) scale(1.02);
}

/* Hint Text */
.modern-toast-hint {
    font-size: 0.75rem;
    color: #8b8b8b;
    margin-top: 4px;
    font-style: italic;
}
