/* ===== TOAST NOTIFICATION SYSTEM ===== */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 400px;
}

.toast {
    background: var(--card);
    border: 1px solid var(--silver);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 0;
    overflow: hidden;
    animation: toastSlideIn 0.3s ease;
    max-width: 400px;
}

.toast-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1rem 0.75rem 1rem;
}

.toast-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.toast-message {
    flex: 1;
    font-size: 0.875rem;
    line-height: 1.4;
    color: var(--text);
}

.toast-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--text-light);
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
    flex-shrink: 0;
}

.toast-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: var(--text);
}

.toast-progress {
    height: 3px;
    background: rgba(0, 0, 0, 0.1);
    width: 100%;
    overflow: hidden;
}

.toast-progress-bar {
    height: 100%;
    transition: width 0.1s linear;
}

/* Toast Types */
.toast-success {
    border-left: 4px solid var(--emerald);
}

.toast-success .toast-progress-bar {
    background: var(--emerald);
}

.toast-error {
    border-left: 4px solid var(--alizarin);
}

.toast-error .toast-progress-bar {
    background: var(--alizarin);
}

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

.toast-info .toast-progress-bar {
    background: var(--peter-river);
}

.toast-warning {
    border-left: 4px solid var(--sunflower);
}

.toast-warning .toast-progress-bar {
    background: var(--sunflower);
}

/* Animations */
@keyframes toastSlideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes toastSlideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.toast-exit {
    animation: toastSlideOut 0.3s ease forwards;
}

/* Responsive */
@media (max-width: 768px) {
    .toast-container {
        left: 20px;
        right: 20px;
        max-width: none;
    }
    
    .toast {
        max-width: none;
    }
}