/**
 * Toast Notification System - Redesigned
 * Modern, sleek notification style with left border accent
 */

/* Toast Container */
.toast-container {
    position: fixed;
    bottom: 30px;
    left: 20px;
    transform: none;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

/* Individual Toast */
.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 280px;
    max-width: 380px;
    padding: 14px 16px;
    background: #ffffff;
    border-radius: 10px;
    border-left: 4px solid #3b82f6;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08);
    animation: slideInLeft 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #1f2937;
    backdrop-filter: blur(10px);
}

/* Toast Icon */
.toast-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    flex-shrink: 0;
    font-size: 12px;
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.toast-message {
    flex: 1;
    color: #374151;
    margin: 0;
    line-height: 1.4;
}

/* Toast Variants */
.toast.toast-success {
    border-left-color: #10b981;
}

.toast.toast-success .toast-icon {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.toast.toast-success .toast-message {
    color: #047857;
}

.toast.toast-error {
    border-left-color: #ef4444;
}

.toast.toast-error .toast-icon {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.toast.toast-error .toast-message {
    color: #dc2626;
}

.toast.toast-warning {
    border-left-color: #f59e0b;
}

.toast.toast-warning .toast-icon {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.toast.toast-warning .toast-message {
    color: #d97706;
}

.toast.toast-info {
    border-left-color: #3b82f6;
}

.toast.toast-info .toast-icon {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.toast.toast-info .toast-message {
    color: #1e40af;
}

/* Close Button */
.toast-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    font-size: 14px;
    padding: 0;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.toast-close:hover {
    color: #4b5563;
    transform: scale(1.1);
}

/* Animations */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOutLeft {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(-40px);
    }
}

.toast.removing {
    animation: slideOutLeft 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .toast-container {
        left: 12px;
        right: auto;
        bottom: 12px;
    }

    .toast {
        min-width: auto;
        max-width: 280px;
        font-size: 12px;
        padding: 12px 14px;
    }

    .toast-icon {
        width: 22px;
        height: 22px;
        font-size: 11px;
    }

    .toast-close {
        width: 18px;
        height: 18px;
        font-size: 12px;
    }
}

/* Accessibility */
.toast[role="alert"] {
    /* Screen reader announcements */
}

.toast-icon i,
.toast-icon svg {
    width: 100%;
    height: 100%;
}
