.message-toast-container {
    position: fixed;
    z-index: 9999;
    top: 20px;
    right: 20px;
    max-width: 350px;
    width: 100%;
    pointer-events: none;
}

.message-toast {
    position: relative;
    background: white;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-left: 4px solid #4a6fa5;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    pointer-events: auto;
    overflow: hidden;
}

.message-toast.show {
    opacity: 1;
    transform: translateX(0);
}

.message-toast.hide {
    opacity: 0;
    transform: translateX(100%);
}

.message-info {
    border-left-color: #4a6fa5;
    background: linear-gradient(135deg, #f8fafc, #e8f4fd);
}

.message-success {
    border-left-color: #10b981;
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
}

.message-warning {
    border-left-color: #f59e0b;
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
}

.message-error {
    border-left-color: #ef4444;
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
}

.toast-content {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.toast-icon {
    font-size: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

.message-info .toast-icon {
    color: #4a6fa5;
}

.message-success .toast-icon {
    color: #10b981;
}

.message-warning .toast-icon {
    color: #f59e0b;
}

.message-error .toast-icon {
    color: #ef4444;
}

.toast-message {
    flex: 1;
    font-size: 14px;
    line-height: 1.5;
    color: #374151;
    word-break: break-word;
}

.toast-close {
    position: absolute;
    top: 8px;
    right: 8px;
    background: none;
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #9ca3af;
    transition: all 0.2s;
    padding: 0;
}

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

.toast-close i {
    font-size: 14px;
}

.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 100%;
    background: linear-gradient(90deg, rgba(74, 111, 165, 0.8), rgba(74, 111, 165, 0.4));
    transform-origin: left;
    animation: toastProgress linear forwards;
}

.message-success .toast-progress {
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.8), rgba(16, 185, 129, 0.4));
}

.message-warning .toast-progress {
    background: linear-gradient(90deg, rgba(245, 158, 11, 0.8), rgba(245, 158, 11, 0.4));
}

.message-error .toast-progress {
    background: linear-gradient(90deg, rgba(239, 68, 68, 0.8), rgba(239, 68, 68, 0.4));
}

@keyframes toastProgress {
    from {
        transform: scaleX(1);
    }
    to {
        transform: scaleX(0);
    }
}

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