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

.toast {
    background: var(--surface-2);
    backdrop-filter: blur(20px);
    border: 1px solid var(--stroke-1);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.5rem;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.35);
    opacity: 0; 
    transform: translateX(440px) scale(0.9);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1); 
    pointer-events: auto; 
    min-width: 320px; 
    max-width: 100%; 
    position: relative;
    overflow: hidden;
}

.toast::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--accent-1), rgba(0, 198, 164, 0.5));
}

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

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

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

.toast-message {
    flex: 1; 
    color: var(--text-primary); 
    font-size: 0.95em; 
    line-height: 1.5;
    font-weight: 500;
}

.toast-close {
    flex-shrink: 0;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.3em;
    padding: 0;
    margin-top: -2px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

.toast-close:hover {
    color: var(--accent-1);
    transform: scale(1.15);
}

.toast-success {
    border-left: 4px solid #10b981;
}

.toast-success::before {
    background: linear-gradient(180deg, #10b981, rgba(16, 185, 129, 0.5));
}

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

.toast-error {
    border-left: 4px solid #ef4444;
}

.toast-error::before {
    background: linear-gradient(180deg, #ef4444, rgba(239, 68, 68, 0.5));
}

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

.toast-warning {
    border-left: 4px solid #f59e0b;
}

.toast-warning::before {
    background: linear-gradient(180deg, #f59e0b, rgba(245, 158, 11, 0.5));
}

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

.toast-info {
    border-left: 4px solid var(--accent-1);
}

.toast-info::before {
    background: linear-gradient(180deg, var(--accent-1), rgba(0, 198, 164, 0.5));
}

.toast-info .toast-icon {
    color: var(--accent-1);
}

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

    .toast {
        min-width: unset;
        width: 100%;
    }
}
    word-wrap: break-word; 
}

.toast-close {
    background: transparent; 
    border: none; 
    color: #94a3b8; 
    font-size: 1.5em; 
    cursor: pointer; 
    padding: 0; 
    width: 24px; 
    height: 24px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    border-radius: 50%; 
    transition: all 0.2s ease; 
    flex-shrink: 0; 
}

.toast-close:hover {
    background: rgba(255, 255, 255, 0.1); 
    color: #fff; 
}

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

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

.toast-warning {
    border-color: rgba(245, 158, 11, 0.5); 
    background: rgba(245, 158, 11, 0.1); 
}

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

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