.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    max-width: 340px;
    background: #1a2d38;
    border: 1px solid rgba(255,255,255,0.08);
    padding: 0;
    border-radius: 14px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.05);
    z-index: 1023;
    overflow: hidden;
    animation: slideInRight 0.4s cubic-bezier(0.34,1.56,0.64,1) forwards,
        fadeOut 0.5s ease-in-out forwards 4s;
    transform: translateX(120%);
}

.toast.closing {
    animation: slideOutRight 0.4s ease-in-out forwards;
}

.toast-progress {
    position: absolute;
    display: block;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 100%;
    animation: toastProgress 4s ease-in-out forwards;
}

.toast-content-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
}

.toast-icon {
    padding: 0 10px 0 0;
    display: flex;
    align-items: center;
}

.toast-message {
    flex: 1;
    font-size: 13px;
    color: #f3f4f6;
    line-height: 1.4;
    font-weight: 500;
}

.toast.toast-success {
    background: linear-gradient(135deg, #1a2d38, #152731);
    border-left: 4px solid #10b981;
}

.toast.toast-success .toast-progress {
    background: linear-gradient(90deg, #10b981, #059669);
}

.toast.toast-danger {
    background: linear-gradient(135deg, #1a2d38, #152731);
    border-left: 4px solid #ef4444;
}

.toast.toast-danger .toast-progress {
    background: linear-gradient(90deg, #ef4444, #dc2626);
}

.toast.toast-info {
    background: linear-gradient(135deg, #1a2d38, #152731);
    border-left: 4px solid #3b82f6;
}

.toast.toast-info .toast-progress {
    background: linear-gradient(90deg, #3b82f6, #2563eb);
}

.toast.toast-warning {
    background: linear-gradient(135deg, #1a2d38, #152731);
    border-left: 4px solid #f59e0b;
}

.toast.toast-warning .toast-progress {
    background: linear-gradient(90deg, #f59e0b, #d97706);
}

@keyframes slideInRight {
    0% { transform: translateX(120%); }
    75% { transform: translateX(-5%); }
    100% { transform: translateX(0%); }
}

@keyframes slideOutRight {
    0% { transform: translateX(0%); }
    25% { transform: translateX(-5%); }
    100% { transform: translateX(120%); }
}

@keyframes fadeOut {
    0% { opacity: 1; }
    100% { opacity: 0; }
}

@keyframes toastProgress {
    0% { width: 100%; }
    100% { width: 0%; }
}
