/* Error Toast Styles */
.error-toast {
    position: fixed;
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-20px);
    opacity: 0;
    transition: all 0.3s ease;
    max-width: 400px;
    font-size: 14px;
}

.error-toast.show {
    transform: translateY(0);
    opacity: 1;
}

/* Positions */
.error-toast-top-right {
    top: 20px;
    right: 20px;
}

.error-toast-top-left {
    top: 20px;
    left: 20px;
}

.error-toast-bottom-right {
    bottom: 20px;
    right: 20px;
}

.error-toast-bottom-left {
    bottom: 20px;
    left: 20px;
}

/* Types */
.error-toast-network {
    border-left: 4px solid #f59e0b;
}

.error-toast-network i {
    color: #f59e0b;
}

.error-toast-auth {
    border-left: 4px solid #ef4444;
}

.error-toast-auth i {
    color: #ef4444;
}

.error-toast-validation {
    border-left: 4px solid #f97316;
}

.error-toast-validation i {
    color: #f97316;
}

.error-toast-server {
    border-left: 4px solid #dc2626;
}

.error-toast-server i {
    color: #dc2626;
}

.error-toast-unknown {
    border-left: 4px solid #6b7280;
}

.error-toast-unknown i {
    color: #6b7280;
}

/* Icon */
.error-toast i {
    font-size: 18px;
    flex-shrink: 0;
}

/* Message */
.error-toast .error-message {
    flex: 1;
    color: #374151;
    line-height: 1.4;
}

/* Retry button */
.error-toast .error-retry-btn {
    padding: 6px 12px;
    background: #10b981;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.2s;
    flex-shrink: 0;
}

.error-toast .error-retry-btn:hover {
    background: #059669;
}

/* Close button */
.error-toast .error-close-btn {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    font-size: 20px;
    color: #9ca3af;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s;
    flex-shrink: 0;
}

.error-toast .error-close-btn:hover {
    background: #f3f4f6;
    color: #374151;
}

/* Mobile */
@media (max-width: 480px) {
    .error-toast {
        left: 10px;
        right: 10px;
        max-width: none;
    }
    
    .error-toast-top-right,
    .error-toast-top-left {
        top: 10px;
        left: 10px;
        right: 10px;
    }
    
    .error-toast-bottom-right,
    .error-toast-bottom-left {
        bottom: 10px;
        left: 10px;
        right: 10px;
    }
}

/* Retry blocked style for chat */
.retry-blocked {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #9ca3af;
    font-size: 12px;
}

.retry-blocked i {
    color: #ef4444;
}

