/* Toast Notification Styles */

.toast-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 400px;
}

.toast {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: white;
    border-radius: var(--radius-lg, 8px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-left: 4px solid;
    min-width: 300px;
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.3s ease;
}

.toast-show {
    transform: translateX(0);
    opacity: 1;
}

.toast-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.toast-content {
    flex: 1;
}

.toast-message {
    font-size: 0.875rem;
    line-height: 1.4;
    color: var(--gray-800, #1f2937);
}

.toast-close {
    background: none;
    border: none;
    color: var(--gray-400, #9ca3af);
    cursor: pointer;
    padding: 0.25rem;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.toast-close:hover {
    color: var(--gray-600, #4b5563);
}

/* Toast Types */
.toast-success {
    border-left-color: var(--success, #10b981);
}

.toast-success .toast-icon {
    color: var(--success, #10b981);
}

.toast-error {
    border-left-color: var(--danger, #ef4444);
}

.toast-error .toast-icon {
    color: var(--danger, #ef4444);
}

.toast-warning {
    border-left-color: var(--warning, #f59e0b);
}

.toast-warning .toast-icon {
    color: var(--warning, #f59e0b);
}

.toast-info {
    border-left-color: var(--info, #3b82f6);
}

.toast-info .toast-icon {
    color: var(--info, #3b82f6);
}

/* Mobile responsive */
@media (max-width: 640px) {
    .toast-container {
        right: 1rem;
        left: 1rem;
        max-width: none;
    }
    
    .toast {
        min-width: 0;
        width: 100%;
    }
}

/* Toast dark mode */
[data-theme="dark"] .toast {
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  border-color: var(--border-color);
  box-shadow: 0 4px 12px var(--shadow-color);
}

[data-theme="dark"] .toast-success {
  border-left-color: #10b981;
  background-color: rgba(16, 185, 129, 0.1);
}

[data-theme="dark"] .toast-error {
  border-left-color: #ef4444;
  background-color: rgba(239, 68, 68, 0.1);
}

[data-theme="dark"] .toast-warning {
  border-left-color: #f59e0b;
  background-color: rgba(245, 158, 11, 0.1);
}