﻿/* Professional Toast Notification Styles with Smooth Transitions */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    max-width: 400px;
}

.toast {
    font-family: 'Inter', sans-serif;
    background: white;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-left: 4px solid;
    animation: slideInRight 0.3s ease;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    max-width: 400px;
    border: 1px solid;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .toast:hover {
        transform: translateY(-2px);
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
    }

.toast-success {
    border-left-color: #10b981;
    border-color: #d1fae5;
    background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
}

.toast-error {
    border-left-color: #ef4444;
    border-color: #fecaca;
    background: linear-gradient(135deg, #fef2f2 0%, #ffffff 100%);
}

.toast-warning {
    border-left-color: #f59e0b;
    border-color: #fed7aa;
    background: linear-gradient(135deg, #fffbeb 0%, #ffffff 100%);
}

.toast-info {
    border-left-color: #3b82f6;
    border-color: #dbeafe;
    background: linear-gradient(135deg, #eff6ff 0%, #ffffff 100%);
}

.toast-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
    font-size: 12px;
    font-weight: 600;
}

.toast-success .toast-icon {
    background: #10b981;
    color: white;
}

.toast-error .toast-icon {
    background: #ef4444;
    color: white;
}

.toast-warning .toast-icon {
    background: #f59e0b;
    color: white;
}

.toast-info .toast-icon {
    background: #3b82f6;
    color: white;
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px;
    line-height: 1.3;
}

.toast-success .toast-title {
    color: #065f46;
}

.toast-error .toast-title {
    color: #991b1b;
}

.toast-warning .toast-title {
    color: #92400e;
}

.toast-info .toast-title {
    color: #1e40af;
}

.toast-message {
    font-size: 13px;
    line-height: 1.4;
    font-weight: 400;
}

.toast-success .toast-message {
    color: #047857;
}

.toast-error .toast-message {
    color: #dc2626;
}

.toast-warning .toast-message {
    color: #d97706;
}

.toast-info .toast-message {
    color: #2563eb;
}

.toast-close {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #9ca3af;
    flex-shrink: 0;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
}

    .toast-close:hover {
        background: #f3f4f6;
        color: #6b7280;
    }

.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: currentColor;
    opacity: 0.3;
    width: 100%;
    transform-origin: left;
}

@keyframes progressBar {
    from {
        transform: scaleX(1);
    }

    to {
        transform: scaleX(0);
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }

    to {
        opacity: 0;
        transform: translateX(100%);
    }
}
