.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 420px;
    pointer-events: none;
}

.toast {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15), 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 18px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    animation: slideInRight 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    pointer-events: auto;
    min-height: 70px;
    max-width: 100%;
}

.toast.success {
    border-left: 5px solid #10b981;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
}

.toast.error {
    border-left: 5px solid #ef4444;
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
}

.toast.info {
    border-left: 5px solid #3b82f6;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
}

.toast-icon {
    font-size: 2rem;
    flex-shrink: 0;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 12px;
}

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

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

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

.toast-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.toast-title {
    font-weight: 700;
    font-size: 1rem;
    color: #1f2937;
    line-height: 1.3;
}

.toast.success .toast-title {
    color: #065f46;
}

.toast.error .toast-title {
    color: #7f1d1d;
}

.toast.info .toast-title {
    color: #0c4a6e;
}

.toast-message {
    font-size: 0.9rem;
    color: #6b7280;
    line-height: 1.4;
    word-break: break-word;
}

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

.toast.error .toast-message {
    color: #991b1b;
}

.toast.info .toast-message {
    color: #0369a1;
}

.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: currentColor;
    border-radius: 0 0 16px 0;
    animation: progressBar 4s linear forwards;
}

.toast.success .toast-progress {
    background: #10b981;
}

.toast.error .toast-progress {
    background: #ef4444;
}

.toast.info .toast-progress {
    background: #3b82f6;
}

.toast-close {
    flex-shrink: 0;
    background: none;
    border: none;
    cursor: pointer;
    color: #d1d5db;
    font-size: 1.3rem;
    padding: 0;
    line-height: 1;
    transition: all 0.2s ease;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.toast-close:hover {
    color: #6b7280;
    background: rgba(0, 0, 0, 0.05);
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(400px) translateY(-20px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateX(0) translateY(0) scale(1);
    }
}

@keyframes progressBar {
    from {
        width: 100%;
    }
    to {
        width: 0%;
    }
}

@keyframes slideOut {
    from {
        opacity: 1;
        transform: translateX(0) translateY(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateX(400px) translateY(-20px) scale(0.9);
    }
}

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

@media (max-width: 640px) {
    .toast-container {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }

    .toast {
        padding: 16px 20px;
        min-height: 60px;
        gap: 14px;
    }

    .toast-icon {
        width: 44px;
        height: 44px;
        font-size: 1.8rem;
    }

    .toast-title {
        font-size: 0.95rem;
    }

    .toast-message {
        font-size: 0.85rem;
    }
}

.alert.alert-success, .alert.alert-error, .alert.alert-danger, .alert.alert-info, .alert.alert-warning {
    display: none !important;
}
